Skip to content

Commit 78c220c

Browse files
author
Sean Sundberg
committed
Updates Dockerfile from starter kit
1 parent 0ec8552 commit 78c220c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ FROM registry.access.redhat.com/ubi8/nodejs-10 AS builder
22

33
WORKDIR /opt/app-root/src
44

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 ./
79
RUN npm ci
810
RUN cd client && npm ci
911

1012
RUN npm run build
1113

1214
FROM registry.access.redhat.com/ubi8/nodejs-10
1315

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
1518
COPY server server
16-
COPY client client
19+
COPY client/package*.json client/
1720
COPY package.json .
1821
RUN npm install --production
1922

@@ -22,4 +25,5 @@ ENV HOST=0.0.0.0 PORT=3000
2225

2326
EXPOSE 3000/tcp
2427

25-
CMD npm start
28+
CMD ["npm", "start"]
29+

0 commit comments

Comments
 (0)