[1.0.0] #19
@@ -19,7 +19,7 @@ services:
|
||||
context: .
|
||||
dockerfile: docker/dev/Dockerfile.frontend
|
||||
ports:
|
||||
- "5173:5173"
|
||||
- "3000:3000"
|
||||
env_file:
|
||||
- ./frontend/.env
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -11,7 +11,9 @@ COPY ./frontend .
|
||||
# Build the app
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 5173
|
||||
RUN npm install -g serve
|
||||
|
||||
# Serve built app (no hot reload)
|
||||
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0"]
|
||||
EXPOSE 3000
|
||||
|
||||
# Serve built app
|
||||
CMD ["serve", "-s", "dist"]
|
||||
@@ -21,4 +21,4 @@ EXPOSE 5000
|
||||
ENTRYPOINT [ "entrypoint.sh" ]
|
||||
|
||||
# This '$@' will be replaced by the CMD
|
||||
CMD ["npm", "run", "dev"]
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user