Private
Public Access
fix: cambiado docker para que soporte hotrealoading en el front
This commit is contained in:
1 parent
8d5e191d7d
commit
e0b9be6147
2 files changed
+27
-1
No files matched your search
+9
-1
@@ -14,11 +14,19 @@ services:
|
|||||||
svelte:
|
svelte:
|
||||||
build:
|
build:
|
||||||
context: ./front
|
context: ./front
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile.dev
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
|
volumes:
|
||||||
|
- ./front:/app
|
||||||
|
- /app/node_modules
|
||||||
|
environment:
|
||||||
|
- HOST=0.0.0.0
|
||||||
|
- PORT=3000
|
||||||
|
- CHOKIDAR_USEPOLLING=true
|
||||||
|
- WATCHPACK_POLLING=true
|
||||||
|
|
||||||
go-api:
|
go-api:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -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"]
|
||||||
Reference in new issue
Block a user