Skip to content

Commit

Permalink
Fix build command
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Jul 27, 2021
1 parent 361fb2c commit 6202569
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
Expand Up @@ -10,12 +10,12 @@ RUN apk update && \
COPY . .

# Build executable
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -gcflags=all=-l ./app -o /build/crypto
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -gcflags=all=-l -o /build/crypto ./app

# Release image
FROM scratch

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /build .

ENTRYPOINT ["./crypto"]
ENTRYPOINT ["./crypto"]

0 comments on commit 6202569

Please sign in to comment.