Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mueller authored Aug 12, 2024
1 parent 45fd110 commit c016c06
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ RUN go mod verify

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /githubpeople ./cli/githubpeople

FROM scratch
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /etc/passwd /etc/passwd
COPY --from=build /etc/group /etc/group

FROM alpine:3.20.2
COPY --from=build /githubpeople .
# JSON Data must be mounted as volume
CMD ["/githubpeople", "-people", "githubpeople.json"]
CMD ["/githubpeople", "-people", "githubpeople.json"]

0 comments on commit c016c06

Please # to comment.