-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
26 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
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,13 +1,16 @@ | ||
FROM golang:1.20-alpine AS build_go | ||
ARG cmd | ||
WORKDIR work | ||
COPY . . | ||
RUN go install ./cmd/ssl-log-player | ||
RUN go install ./cmd/${cmd} | ||
|
||
# Start fresh from a smaller image | ||
FROM alpine:3 | ||
COPY --from=build_go /go/bin/ssl-log-player /app/ssl-log-player | ||
ARG cmd | ||
COPY --from=build_go /go/bin/${cmd} /app/${cmd} | ||
WORKDIR /data | ||
RUN chown 1000: /data | ||
USER 1000 | ||
ENTRYPOINT ["/app/ssl-log-player"] | ||
ENV COMMAND="/app/${cmd}" | ||
ENTRYPOINT "${COMMAND}" | ||
CMD [] |
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 was deleted.
Oops, something went wrong.