Skip to content

Commit

Permalink
add dir with nonroot permissions for volumes
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
felipeweb committed Oct 5, 2020
1 parent 90d1fa4 commit fe0f817
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Expand Up @@ -10,10 +10,13 @@ RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o prestd main

RUN apt-get update && apt-get install -yq netcat

WORKDIR /app


# use debug because we need a shell (busybox)
FROM gcr.io/distroless/base:debug
COPY --from=builder /bin/nc /bin/nc
COPY --from=builder --chown=nonroot:nonroot /app /app
COPY --from=builder --chown=nonroot:nonroot /workspace/cmd/prestd/prestd /app/prestd
COPY --from=builder --chown=nonroot:nonroot /workspace/cmd/prestd/prest.toml /app/prest.toml
COPY --from=builder --chown=nonroot:nonroot /workspace/etc/entrypoint.sh /app/entrypoint.sh
Expand Down

0 comments on commit fe0f817

Please sign in to comment.