1
0
Fork 0
datetime.link/Dockerfile

24 lines
378 B
Docker
Raw Normal View History

FROM golang:1.17 AS build
2020-11-08 00:11:38 +08:00
RUN apk add \
make
2020-11-07 23:57:45 +08:00
WORKDIR /go/src/app
COPY . .
RUN make TAGS=production
2020-11-08 00:11:38 +08:00
FROM alpine:3.12
2020-11-10 17:26:26 +08:00
RUN apk add --no-cache \
tzdata
2020-11-08 00:11:38 +08:00
WORKDIR /app
COPY --from=build /go/src/app/assets assets
COPY --from=build /go/src/app/templates templates
COPY --from=build /go/src/app/data/cities.json data/
COPY --from=build /go/src/app/datetime .
CMD ["./datetime"]