From 6f09bc8b10b0ba1ec4ae52309abe48a61a4f0b19 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Sun, 15 Mar 2020 16:24:07 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f653615 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:1.14-alpine as build +ADD . /app +WORKDIR /app +RUN go build + +FROM alpine:3.11 +RUN apk add --no-cache tzdata ca-certificates +COPY --from=build /app/mailygo /bin/ +WORKDIR /app +EXPOSE 8080 +CMD ["mailygo"] \ No newline at end of file