fix: align ports and docker config

This commit is contained in:
Kailasdevdas
2026-04-20 16:05:38 +05:30
parent 3fc4100a72
commit 69d6d5a8f3
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ services:
context: . context: .
dockerfile: docker/dev/Dockerfile.frontend dockerfile: docker/dev/Dockerfile.frontend
ports: ports:
- "5173:5173" - "3000:3000"
env_file: env_file:
- ./frontend/.env - ./frontend/.env
restart: unless-stopped restart: unless-stopped
+5 -3
View File
@@ -11,7 +11,9 @@ COPY ./frontend .
# Build the app # Build the app
RUN npm run build RUN npm run build
EXPOSE 5173 RUN npm install -g serve
# Serve built app (no hot reload) EXPOSE 3000
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0"]
# Serve built app
CMD ["serve", "-s", "dist"]
+1 -1
View File
@@ -21,4 +21,4 @@ EXPOSE 5000
ENTRYPOINT [ "entrypoint.sh" ] ENTRYPOINT [ "entrypoint.sh" ]
# This '$@' will be replaced by the CMD # This '$@' will be replaced by the CMD
CMD ["npm", "run", "dev"] CMD ["npm", "start"]