File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,20 @@ RUN cd $GOPATH/src/github.com/containers/skopeo \
1212# ---------------------------------------------------------------------
1313# STAGE 2: Build the kubernetes-monitor
1414# ---------------------------------------------------------------------
15- FROM node:erbium-alpine
15+ FROM registry.access.redhat.com/ubi8/ubi:latest
1616
1717LABEL maintainer="Snyk Ltd"
1818
1919ENV NODE_ENV production
2020
21- RUN apk update
22- RUN apk upgrade
23- RUN apk --no-cache add dumb-init
21+ RUN curl -sL https://rpm.nodesource.com/setup_12.x | bash -
22+ RUN yum install -y nodejs
2423
25- RUN addgroup -S -g 10001 snyk
26- RUN adduser -S -G snyk -h /srv/app -u 10001 snyk
24+ RUN curl -L -o /usr/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64
25+ RUN chmod 755 /usr/bin/dumb-init
26+
27+ RUN groupadd -g 10001 snyk
28+ RUN useradd -g snyk -d /srv/app -u 10001 snyk
2729
2830WORKDIR /srv/app
2931USER 10001:10001
@@ -45,6 +47,9 @@ RUN npm install
4547# add the rest of the app files
4648ADD --chown=snyk:snyk . .
4749
50+ # OpenShift 4 doesn't allow dumb-init access the app folder without this permission.
51+ RUN chmod 755 /srv/app && chmod 755 /srv/app/bin && chmod +x /srv/app/bin/start
52+
4853# Complete any `prepare` tasks (e.g. typescript), as this step ran automatically prior to app being copied
4954RUN npm run prepare
5055
You can’t perform that action at this time.
0 commit comments