File size: 584 Bytes
7bb1512
 
 
 
 
 
 
 
0a25a37
 
 
7bb1512
 
2892299
7bb1512
 
2892299
7bb1512
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
version: '3.8'

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "7860:7860"
    environment:
      - PORT=7860
    restart: unless-stopped

  # Development service with fallback options for npm
  dev:
    image: node:18-alpine
    command: sh -c "npm config set registry https://registry.npmjs.org/ && npm config set strict-ssl false && npm install --no-fund --no-audit && npm run dev"
    ports:
      - "5173:5173"
    working_dir: /app
    volumes:
      - .:/app
      - /app/node_modules
    environment:
      - NODE_ENV=development