mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-04 11:58:41 +00:00
Docker file best practices (#698)
(based on https://github.com/up9inc/mizu/pull/692/files)
This commit is contained in:
parent
beb8363722
commit
19b4810ded
@ -82,6 +82,9 @@ RUN go build -ldflags="-extldflags=-static -s -w \
|
|||||||
ARG TARGETARCH=amd64
|
ARG TARGETARCH=amd64
|
||||||
FROM ${TARGETARCH}/busybox:latest
|
FROM ${TARGETARCH}/busybox:latest
|
||||||
|
|
||||||
|
# gin-gonic runs in debug mode without this
|
||||||
|
ENV GIN_MODE=release
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy binary and config files from /build to root folder of scratch container.
|
# Copy binary and config files from /build to root folder of scratch container.
|
||||||
@ -89,8 +92,5 @@ COPY --from=builder ["/app/agent-build/mizuagent", "."]
|
|||||||
COPY --from=front-end ["/app/ui-build/build", "site"]
|
COPY --from=front-end ["/app/ui-build/build", "site"]
|
||||||
COPY --from=front-end ["/app/ui-build/build-ent", "site-standalone"]
|
COPY --from=front-end ["/app/ui-build/build-ent", "site-standalone"]
|
||||||
|
|
||||||
# gin-gonic runs in debug mode without this
|
|
||||||
ENV GIN_MODE=release
|
|
||||||
|
|
||||||
# this script runs both apiserver and passivetapper and exits either if one of them exits, preventing a scenario where the container runs without one process
|
# this script runs both apiserver and passivetapper and exits either if one of them exits, preventing a scenario where the container runs without one process
|
||||||
ENTRYPOINT "/app/mizuagent"
|
ENTRYPOINT ["/app/mizuagent"]
|
||||||
|
Loading…
Reference in New Issue
Block a user