Skip to content

Commit

Permalink
update build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Blokhin Dmitriy committed Dec 30, 2024
1 parent 9bb1a3b commit b78e90b
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
Expand Up @@ -7,13 +7,13 @@ RUN apk update && apk add --no-cache \

WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 go build -o proxyme .
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -a -o proxyme .

# runner
FROM scratch
USER 1000:1000

WORKDIR /
WORKDIR /app
COPY --from=builder /app/proxyme .
USER 1000:1000

ENTRYPOINT ["./proxyme"]

0 comments on commit b78e90b

Please sign in to comment.