fixed frontend issues
This commit is contained in:
parent
ca5c88e20f
commit
37ad43c817
@ -14,16 +14,18 @@ services:
|
|||||||
- fusero-app-backend
|
- fusero-app-backend
|
||||||
|
|
||||||
fusero-app-frontend-dev:
|
fusero-app-frontend-dev:
|
||||||
image: node:20
|
build:
|
||||||
|
context: ./frontend
|
||||||
|
dockerfile: Dockerfile.dev
|
||||||
container_name: fusero-app-frontend-dev
|
container_name: fusero-app-frontend-dev
|
||||||
working_dir: /app
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/app
|
- ./frontend:/app
|
||||||
|
- /app/node_modules
|
||||||
ports:
|
ports:
|
||||||
- '8080:8080'
|
- '8080:8080'
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=development
|
- 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:
|
networks:
|
||||||
- fusero-network
|
- fusero-network
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -8,11 +8,11 @@ COPY package*.json ./
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copy source code
|
# Copy the rest of the application
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Expose port 3000
|
# Expose port 8080
|
||||||
EXPOSE 3000
|
EXPOSE 8080
|
||||||
|
|
||||||
# Start development server
|
# 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