-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from tparker00/reworkClientUse
Rework client use
- Loading branch information
Showing
3 changed files
with
113 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
FROM golang:alpine AS builder | ||
|
||
WORKDIR /app | ||
RUN apk add --no-cache musl-dev gcc ca-certificates | ||
RUN apk add --no-cache musl-dev gcc | ||
COPY . . | ||
RUN cd cmd/bws-cache && go build -ldflags='-s -w' -trimpath -o /dist/bws-cache | ||
|
||
RUN cd cmd/bws-cache && go build -ldflags='-s -w' -trimpath -o /dist/bws-cache | ||
RUN ldd /dist/bws-cache | tr -s [:blank:] '\n' | grep ^/ | xargs -I % install -D % /dist/% | ||
|
||
FROM scratch | ||
|
||
FROM alpine | ||
COPY --from=builder /dist / | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
RUN apk add --no-cache ca-certificates | ||
|
||
USER 65534 | ||
|
||
CMD ["/bws-cache", "start"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters