jlelse
/
MailyGo
Archived
1
Fork 0

Add Dockerfile

This commit is contained in:
Jan-Lukas Else 2020-03-15 16:24:07 +01:00
parent 197817cb03
commit 6f09bc8b10
1 changed files with 11 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -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"]