fix: align ports and docker config
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"]
|
||||||
@@ -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"]
|
||||||
Reference in New Issue
Block a user