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
2
4
3
5
WORKDIR /app/
4
6
5
7
COPY package.json .
6
8
COPY yarn.lock .
7
9
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
9
15
10
- COPY . .
16
+ USER cfu
11
17
12
18
CMD [ "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
2
4
3
5
WORKDIR /app/
4
6
5
7
COPY package.json .
6
8
COPY yarn.lock .
7
9
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
9
15
10
- COPY . .
16
+ USER cfu
11
17
12
18
CMD [ "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
2
4
3
5
WORKDIR /app/
4
6
5
7
COPY package.json .
6
8
COPY yarn.lock .
7
9
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
9
15
10
- COPY . .
16
+ USER cfu
11
17
12
18
CMD [ "node" , "/app/src/index.js" ]
You can’t perform that action at this time.
0 commit comments