-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
24 lines (22 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.11.4
COPY . /go/src/github.com/maddevsio/comedian
WORKDIR /go/src/github.com/maddevsio/comedian
RUN go get -u github.com/golang/dep/cmd/dep
RUN dep ensure
RUN GOOS=linux GOARCH=amd64 go build -o comedian main.go
FROM debian:9.8
LABEL maintainer="Anatoliy Fedorenko <[email protected]>"
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates locales wget \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
ENV DOCKERIZE_VERSION v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
COPY active.en.toml /
COPY active.ru.toml /
COPY --from=0 /go/src/github.com/maddevsio/comedian/comedian /
COPY migrations /migrations
ENTRYPOINT ["./comedian"]