fix: cambiado docker para que soporte hotrealoading en el front

This commit is contained in:
fede committed 2026-10-22 21:01:34 -03:00
1 parent 8d5e191d7d
commit e0b9be6147
2 files changed
+27 -1

No files matched your search

+9 -1
View File
@@ -14,11 +14,19 @@ services:
svelte:
build:
context: ./front
dockerfile: Dockerfile
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
networks:
- app-network
volumes:
- ./front:/app
- /app/node_modules
environment:
- HOST=0.0.0.0
- PORT=3000
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
go-api:
build:
+18
View File
@@ -0,0 +1,18 @@
# syntax=docker/dockerfile:1
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
ENV HOST=0.0.0.0
ENV PORT=3000
ENV CHOKIDAR_USEPOLLING=true
ENV WATCHPACK_POLLING=true
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "3000"]