Skip to content

Commit

Permalink
👷 ci(Dockerfile): add trimpath flag
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Oct 8, 2022
1 parent 8adf94b commit 5b50c6e
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 @@ -12,7 +12,7 @@ COPY go.sum go.sum
RUN go mod download

COPY . .
RUN go build -ldflags '-w -s' -o pure-live .
RUN go build -trimpath -ldflags '-w -s' -o pure-live .

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk add --no-cache ca-certificates
Expand All @@ -28,4 +28,4 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

EXPOSE 8800

ENTRYPOINT ["/pure-live","run"]
ENTRYPOINT ["/pure-live","run"]

0 comments on commit 5b50c6e

Please sign in to comment.