Skip to content

Commit

Permalink
Update go version, add tzinfo (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
chapsuk authored Nov 14, 2023
1 parent 78deac9 commit 6a5cf54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM golang:1.19.5-alpine3.17
RUN apk add make
FROM golang:1.21.4-alpine3.18 AS build
RUN apk add make tzdata
COPY . /go/src/miga
WORKDIR /go/src/miga
RUN make build

FROM scratch
COPY --from=0 /go/src/miga/bin/miga /miga
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=build /go/src/miga/bin/miga /miga
ENTRYPOINT [ "/miga" ]

0 comments on commit 6a5cf54

Please sign in to comment.