File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ RUN groupadd -g 10001 snyk
3434RUN useradd -g snyk -d /srv/app -u 10001 snyk
3535
3636WORKDIR /srv/app
37- USER 10001:10001
3837
3938COPY --chown=snyk:snyk --from=skopeo-build /usr/bin/skopeo /usr/bin/skopeo
4039COPY --chown=snyk:snyk --from=skopeo-build /etc/containers/registries.d/default.yaml /etc/containers/registries.d/default.yaml
@@ -56,6 +55,10 @@ ADD --chown=snyk:snyk . .
5655# OpenShift 4 doesn't allow dumb-init access the app folder without this permission.
5756RUN chmod 755 /srv/app && chmod 755 /srv/app/bin && chmod +x /srv/app/bin/start
5857
58+ # This must be in the end for Red Hat Build Service
59+ RUN chown -R snyk:snyk .
60+ USER 10001:10001
61+
5962# Complete any `prepare` tasks (e.g. typescript), as this step ran automatically prior to app being copied
6063RUN npm run prepare
6164
You can’t perform that action at this time.
0 commit comments