File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,21 @@ FROM registry.access.redhat.com/ubi8/nodejs-10 AS builder
2
2
3
3
WORKDIR /opt/app-root/src
4
4
5
- COPY --chown=default:root . .
6
-
5
+ RUN mkdir client
6
+ COPY --chown=default:root client client
7
+ COPY client/package*.json client/
8
+ COPY package*.json ./
7
9
RUN npm ci
8
10
RUN cd client && npm ci
9
11
10
12
RUN npm run build
11
13
12
14
FROM registry.access.redhat.com/ubi8/nodejs-10
13
15
14
- COPY --from=builder /opt/app-root/src/public public
16
+ COPY --from=builder /opt/app-root/src/client/build client/build
17
+ COPY public public
15
18
COPY server server
16
- COPY client client
19
+ COPY client/package*.json client/
17
20
COPY package.json .
18
21
RUN npm install --production
19
22
@@ -22,4 +25,5 @@ ENV HOST=0.0.0.0 PORT=3000
22
25
23
26
EXPOSE 3000/tcp
24
27
25
- CMD npm start
28
+ CMD ["npm" , "start" ]
29
+
You can’t perform that action at this time.
0 commit comments