Skip to content

Commit

Permalink
Merge pull request #34 from imikod/main
Browse files Browse the repository at this point in the history
Update Dockerfile to use Go 1.21
  • Loading branch information
matteo-grella authored Nov 1, 2023
2 parents 0fdd4d2 + bad2384 commit be5ba0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18.3-alpine3.16 as Builder
FROM golang:1.21.3-alpine3.18 as Builder

WORKDIR /go/src/cybertron
COPY . .
Expand All @@ -11,10 +11,10 @@ RUN go build \
-o /go/bin/cybertron \
./cmd/server

FROM alpine:3.16
FROM alpine:3.18

COPY --from=Builder /go/bin/cybertron /bin/cybertron

ENV GOOS linux
ENV GOARCH amd64
ENTRYPOINT ["/bin/cybertron"]
ENTRYPOINT ["/bin/cybertron"]

0 comments on commit be5ba0b

Please sign in to comment.