Skip to content

Instantly share code, notes, and snippets.

@buildingwatsize
Created July 16, 2020 07:31
Show Gist options
  • Save buildingwatsize/d9fe81816b28645d31ca7513ef1f4a4d to your computer and use it in GitHub Desktop.
Save buildingwatsize/d9fe81816b28645d31ca7513ef1f4a4d to your computer and use it in GitHub Desktop.
Goldnoti - Dockerfile
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