File tree Expand file tree Collapse file tree 3 files changed +27
-9
lines changed
workflows/codefresh-csdp/versions/1.1.10/images Expand file tree Collapse file tree 3 files changed +27
-9
lines changed Original file line number Diff line number Diff line change 1- FROM node:18.12.1-alpine
1+ FROM node:18.12.1-bullseye-slim
2+
3+ RUN adduser --gecos "" --disabled-password --home /home/cfu --shell /bin/bash cfu
24
35WORKDIR /app/
46
57COPY package.json .
68COPY yarn.lock .
79
8- RUN yarn
10+ RUN yarn --prod
11+
12+ COPY --chown=cfu --chmod=775 . .
13+
14+ RUN mkdir /cf-outputs && chmod 775 /cf-outputs && chown cfu /cf-outputs
915
10- COPY . .
16+ USER cfu
1117
1218CMD [ "node" , "/app/src/index.js" ]
Original file line number Diff line number Diff line change 1- FROM node:18.12.1-alpine
1+ FROM node:18.12.1-bullseye-slim
2+
3+ RUN adduser --gecos "" --disabled-password --home /home/cfu --shell /bin/bash cfu
24
35WORKDIR /app/
46
57COPY package.json .
68COPY yarn.lock .
79
8- RUN yarn
10+ RUN yarn --prod
11+
12+ COPY --chown=cfu --chmod=775 . .
13+
14+ RUN mkdir /cf-outputs && chmod 775 /cf-outputs && chown cfu /cf-outputs
915
10- COPY . .
16+ USER cfu
1117
1218CMD [ "node" , "/app/src/index.js" ]
Original file line number Diff line number Diff line change 1- FROM node:18.12.1-alpine
1+ FROM node:18.12.1-bullseye-slim
2+
3+ RUN adduser --gecos "" --disabled-password --home /home/cfu --shell /bin/bash cfu
24
35WORKDIR /app/
46
57COPY package.json .
68COPY yarn.lock .
79
8- RUN yarn
10+ RUN yarn --prod
11+
12+ COPY --chown=cfu --chmod=775 . .
13+
14+ RUN mkdir /cf-outputs && chmod 775 /cf-outputs && chown cfu /cf-outputs
915
10- COPY . .
16+ USER cfu
1117
1218CMD [ "node" , "/app/src/index.js" ]
You can’t perform that action at this time.
0 commit comments