We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7160b99 commit a2aa14aCopy full SHA for a2aa14a
2 files changed
Dockerfile
@@ -1,6 +1,6 @@
1
FROM node:18-alpine
2
WORKDIR /app
3
COPY my-app .
4
-RUN if [ "$NODE_ENV" = "production" ]; then npm install --production; else npm install; fi
+RUN if [ "$NODE_ENV" = "production" ]; then npm install --production; else npm ci; fi
5
EXPOSE 5173
6
CMD ["npm", "run", "dev"]
docker-compose.yml
@@ -3,7 +3,7 @@ services:
build:
context: .
dockerfile: Dockerfile
- container_name: my-react-app
+ container_name: my-app
7
ports:
8
- "5173:5173"
9
volumes:
0 commit comments