mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 18:45:57 +00:00
fix: optimize docker frontend cache
This commit is contained in:
parent
bbff215381
commit
8e66d7f104
@ -47,11 +47,16 @@ WORKDIR /app
|
||||
|
||||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY ./frontend ./frontend
|
||||
COPY ./widget ./widget
|
||||
|
||||
RUN npm install
|
||||
|
||||
|
||||
# used to by pass Next.js paching lock file
|
||||
ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true
|
||||
ENV NODE_ENV=development
|
||||
ENV CHOKIDAR_USEPOLLING=true
|
||||
ENV WATCHPACK_POLLING=true
|
||||
@ -64,6 +69,9 @@ CMD ["npm", "run", "dev", "--", "-p", "8080"]
|
||||
FROM base AS production
|
||||
WORKDIR /app
|
||||
|
||||
# RUN npm install next
|
||||
# used to by pass Next.js paching lock file
|
||||
ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true
|
||||
ENV NODE_ENV=production
|
||||
# Uncomment the following line in case you want to disable telemetry during runtime.
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
|
Loading…
Reference in New Issue
Block a user