Docker-test spa with react
This commit is contained in:
parent
3648937eac
commit
5cc8829147
12
react_test/spa_react/Dockerfile
Normal file
12
react_test/spa_react/Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# frontend/Dockerfile
|
||||||
|
FROM node:22.9-alpine3.19 AS prod
|
||||||
|
|
||||||
|
WORKDIR /
|
||||||
|
|
||||||
|
COPY public/ /public
|
||||||
|
COPY src/ /src
|
||||||
|
COPY package.json /
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
CMD ["npm", "start"]
|
Loading…
Reference in a new issue