2020-07-20 18:06:32 +02:00
|
|
|
FROM golang:1.14.6-alpine3.12
|
|
|
|
RUN mkdir /src
|
|
|
|
ADD . /src
|
|
|
|
WORKDIR /src
|
|
|
|
|
2020-07-20 19:42:18 +02:00
|
|
|
EXPOSE 8080
|
|
|
|
|
2020-07-20 18:06:32 +02:00
|
|
|
RUN go mod download
|
|
|
|
RUN go build -o main .
|
|
|
|
|
2020-07-20 19:42:18 +02:00
|
|
|
ENTRYPOINT["/src/main"]
|