mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix: patch-lock-file error in dev & prod mode
This commit is contained in:
parent
9c0a358977
commit
52e3ce9775
@ -52,6 +52,9 @@ COPY ./widget ./widget
|
|||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
|
||||||
|
# used to by pass Next.js paching lock file
|
||||||
|
ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true
|
||||||
ENV NODE_ENV=development
|
ENV NODE_ENV=development
|
||||||
ENV CHOKIDAR_USEPOLLING=true
|
ENV CHOKIDAR_USEPOLLING=true
|
||||||
ENV WATCHPACK_POLLING=true
|
ENV WATCHPACK_POLLING=true
|
||||||
@ -64,6 +67,8 @@ CMD ["npm", "run", "dev", "--", "-p", "8080"]
|
|||||||
FROM base AS production
|
FROM base AS production
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# used to by pass Next.js paching lock file
|
||||||
|
ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
# Uncomment the following line in case you want to disable telemetry during runtime.
|
# Uncomment the following line in case you want to disable telemetry during runtime.
|
||||||
ENV NEXT_TELEMETRY_DISABLED 1
|
ENV NEXT_TELEMETRY_DISABLED 1
|
||||||
|
Loading…
Reference in New Issue
Block a user