Set the workdir back to / in Docker image
This commit is contained in:
parent
ec204d164a
commit
ab3c3d8e46
1 changed files with 2 additions and 0 deletions
|
@ -15,11 +15,13 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o rageshake
|
||||||
## Runtime stage, debug variant ##
|
## Runtime stage, debug variant ##
|
||||||
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/static-debian${DEBIAN_VERSION}:debug-nonroot AS debug
|
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/static-debian${DEBIAN_VERSION}:debug-nonroot AS debug
|
||||||
COPY --from=builder /build/rageshake /rageshake
|
COPY --from=builder /build/rageshake /rageshake
|
||||||
|
WORKDIR /
|
||||||
EXPOSE 9110
|
EXPOSE 9110
|
||||||
ENTRYPOINT ["/rageshake"]
|
ENTRYPOINT ["/rageshake"]
|
||||||
|
|
||||||
## Runtime stage ##
|
## Runtime stage ##
|
||||||
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/static-debian${DEBIAN_VERSION}:nonroot
|
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/static-debian${DEBIAN_VERSION}:nonroot
|
||||||
COPY --from=builder /build/rageshake /rageshake
|
COPY --from=builder /build/rageshake /rageshake
|
||||||
|
WORKDIR /
|
||||||
EXPOSE 9110
|
EXPOSE 9110
|
||||||
ENTRYPOINT ["/rageshake"]
|
ENTRYPOINT ["/rageshake"]
|
||||||
|
|
Reference in a new issue