Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1877603: add workdir permissions back #437

Merged
merged 2 commits into from Sep 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion Dockerfile
Expand Up @@ -16,9 +16,16 @@ RUN CGO_ENABLED=0 go build -mod=vendor -tags netgo -ldflags "-w" ./vendor/github

FROM registry.svc.ci.openshift.org/ocp/4.6:base

COPY --from=builder /src/bin/* /bin/
COPY --from=builder /src/bin/* /tmp/bin/
COPY --from=builder /src/grpc-health-probe /bin/grpc_health_probe

RUN cp -avr /tmp/bin/. /bin/

RUN mkdir /registry
RUN chgrp -R 0 /registry && \
chmod -R g+rwx /registry
WORKDIR /registry

# This image doesn't need to run as root user
USER 1001

Expand Down