Hot reload ui

This commit is contained in:
2023-09-28 23:28:30 -04:00
parent 8d60a19b44
commit 28886eb93b
4 changed files with 27 additions and 1170 deletions

View File

@@ -45,8 +45,6 @@ services:
- ${UI_PORT}:3000
build:
context: ui
target: dev
command: npm run dev
depends_on:
- service
networks:

1168
ui/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -27,6 +27,7 @@ WORKDIR /app
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs
COPY --from=builder /app/next.config.js ./
COPY --from=builder /app/public ./public
COPY --from=builder /app/package.json ./package.json
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static

26
ui/docker-compose.yml Normal file
View File

@@ -0,0 +1,26 @@
version: '3'
name: weather
services:
ui:
container_name: weather-ui
env_file:
- .env
environment:
- NODE_ENV=${NODE_ENV:-development}
ports:
- ${UI_PORT:-8080}:3000
build:
context: ./
target: dev
command: "npm run dev"
volumes:
- ./src:/app/src
- ./public:/app/public
- ./styles:/app/styles
networks:
- weather-frontend
restart: unless-stopped
networks:
weather-frontend: {}