Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed Jan 7, 2024
1 parent 38272e0 commit c078961
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,7 +1,7 @@
FROM golang
ADD . /go/src/resenje.org/casbab
RUN CGO_ENABLED=0 go build -ldflags "-s -w" resenje.org/casbab/cmd/casbab
RUN cd /go/src/resenje.org/casbab && CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath ./cmd/casbab

FROM scratch
COPY --from=0 /go/casbab /casbab
COPY --from=0 /go/src/resenje.org/casbab/casbab /casbab
ENTRYPOINT ["/casbab"]

0 comments on commit c078961

Please sign in to comment.