Skip to content

Commit

Permalink
Fix docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrizic committed Sep 12, 2024
1 parent 82cb9c3 commit 81332bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM golang:1.22.1-alpine3.19 as build
FROM golang:1.23.1-alpine3.20 as build

WORKDIR /app
COPY . /app
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build --ldflags '-extldflags=-static' -o github-users main.go

FROM alpine:3.19.1
FROM alpine:3.20
COPY --from=build /app/github-users /app/
COPY /template /template
ENTRYPOINT ["/app/github-users"]

0 comments on commit 81332bd

Please sign in to comment.