Created
July 16, 2020 07:31
-
-
Save buildingwatsize/d9fe81816b28645d31ca7513ef1f4a4d to your computer and use it in GitHub Desktop.
Goldnoti - Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.14-alpine AS build | |
COPY ./ /app/ | |
WORKDIR /app/ | |
RUN CGO_ENABLED=0 GOOS=linux go build -o /bin/goldnoti | |
FROM alpine:3.12 | |
RUN apk add --no-cache tzdata | |
COPY --from=build /bin/goldnoti / | |
COPY ./config /config | |
ENV ENV=dev | |
CMD ["/goldnoti"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment