mirror of
https://github.com/hexastack/hexabot
synced 2024-11-26 13:51:20 +00:00
fix: fix nextjs hot-reload
This commit is contained in:
parent
27dc278e2c
commit
615402c88b
@ -48,8 +48,7 @@ services:
|
||||
- CHOKIDAR_USEPOLLING=true
|
||||
- WATCHPACK_POLLING=true
|
||||
volumes:
|
||||
- ../frontend/src:/app/src
|
||||
- ../frontend/src/components:/app/src/components
|
||||
- ../frontend/:/app/frontend/
|
||||
ports:
|
||||
- 8081:8081
|
||||
|
||||
|
@ -78,13 +78,11 @@ FROM base AS development
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY --from=deps /app/package.json ./package.json
|
||||
COPY --from=deps /app/package-lock.json ./package-lock.json
|
||||
COPY ./widget ./widget
|
||||
COPY ./frontend ./frontend
|
||||
COPY --from=deps /app/widget/node_modules ./widget/node_modules
|
||||
COPY --from=deps /app/frontend/node_modules ./frontend/node_modules
|
||||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm install
|
||||
|
||||
ENV NODE_ENV=development
|
||||
ENV CHOKIDAR_USEPOLLING=true
|
||||
|
Loading…
Reference in New Issue
Block a user