Multistage Dockerfile

A dev és a prod is tud működni docker imagekből, de erre kellett két dockerfile
This commit is contained in:
2025-11-26 17:09:06 +01:00
parent c7210c6d80
commit a45ace4211
6 changed files with 65 additions and 7 deletions

View File

@@ -1,13 +1,15 @@
services:
frontend:
build: .
build:
context: .
dockerfile: Dockerfile.dev
container_name: telefonkonyv-frontend
restart: always
env_file: .env
environment:
- CHOKIDAR_USEPOLLING=true
- BACKEND_API_HOST=${BACKEND_API_HOST}
- BACKEND_API_PORT=${BACKEND_API_PORT}
- BACKEND_API_HOST=${VITE_BACKEND_API_HOST}
- BACKEND_API_PORT=${VITE_BACKEND_API_PORT}
ports:
- "${FRONTEND_PORT:-5173}:5173"
volumes: