enh
This commit is contained in:
parent
a7350914e0
commit
b4caa383b5
2 changed files with 6 additions and 25640 deletions
|
|
@ -35,11 +35,15 @@ ENV NODE_ENV=production
|
||||||
# Copy package files and install production deps
|
# Copy package files and install production deps
|
||||||
COPY --from=pruner /app/out/json/ .
|
COPY --from=pruner /app/out/json/ .
|
||||||
COPY --from=pruner /app/out/package-lock.json ./package-lock.json
|
COPY --from=pruner /app/out/package-lock.json ./package-lock.json
|
||||||
RUN npm ci --production --omit=dev
|
RUN npm config set fetch-retries 5 \
|
||||||
|
&& npm config set fetch-timeout 600000 \
|
||||||
|
&& npm config set fetch-retry-mintimeout 20000 \
|
||||||
|
&& npm cache clean --force \
|
||||||
|
&& npm ci --omit=dev
|
||||||
# Copy built applications
|
# Copy built applications
|
||||||
COPY --from=builder /app/apps/backend/dist ./apps/backend/dist
|
COPY --from=builder /app/apps/backend/dist ./apps/backend/dist
|
||||||
COPY --from=builder /app/apps/fallback-ui/dist ./apps/fallback-ui/dist
|
COPY --from=builder /app/apps/fallback-ui/dist ./apps/fallback-ui/dist
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
RUN npm i -g bun
|
RUN npm i -g bun
|
||||||
CMD ["bun", "apps/backend/dist/index.js"]
|
CMD ["bun", "apps/backend/dist/index.js"]
|
||||||
# CMD ["node", "apps/backend/dist/index.js"]
|
# CMD ["node", "apps/backend/dist/index.js"]
|
||||||
|
|
|
||||||
25638
package-lock.json
generated
25638
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue