Archived
1
This repository has been archived on 2024-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
MailyGo/Dockerfile
Jan-Lukas Else f79df1a8c3
All checks were successful
continuous-integration/drone/push Build is passing
Update Dockerfile
2020-10-22 20:21:32 +02:00

13 lines
266 B
Docker

FROM golang:1.15-alpine as build
RUN apk add --no-cache gcc musl-dev tzdata
ADD . /app
WORKDIR /app
RUN go test
RUN go build
FROM alpine:3.12
RUN apk add --no-cache tzdata ca-certificates
COPY --from=build /app/mailygo /bin/
WORKDIR /app
EXPOSE 8080
CMD ["mailygo"]