fixed frontend issues
This commit is contained in:
parent
ca5c88e20f
commit
37ad43c817
@ -14,16 +14,18 @@ services:
|
||||
- fusero-app-backend
|
||||
|
||||
fusero-app-frontend-dev:
|
||||
image: node:20
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile.dev
|
||||
container_name: fusero-app-frontend-dev
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- /app/node_modules
|
||||
ports:
|
||||
- '8080:8080'
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
command: sh -c "cd /app && npm install && npm run dev -- --host 0.0.0.0 --port 8080"
|
||||
command: npm run dev -- --host 0.0.0.0 --port 8080
|
||||
networks:
|
||||
- fusero-network
|
||||
depends_on:
|
||||
|
@ -8,11 +8,11 @@ COPY package*.json ./
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy source code
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Expose port 3000
|
||||
EXPOSE 3000
|
||||
# Expose port 8080
|
||||
EXPOSE 8080
|
||||
|
||||
# Start development server
|
||||
CMD ["npm", "run", "dev"]
|
||||
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "8080"]
|
Loading…
Reference in New Issue
Block a user