fix error 500
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-08 20:48:59 +00:00
parent 68300e5449
commit aeb7a84bb4
2 changed files with 5 additions and 8 deletions

View File

@@ -1,15 +1,14 @@
ARG NODE_VERSION=22
FROM node:${NODE_VERSION}-alpine AS base
ARG NODE_VERSION=24
FROM node:${NODE_VERSION} AS base
WORKDIR /app
FROM base AS build
ARG BASE_PATH=/
COPY package.json package-lock.json ./
RUN npm install
COPY --link ./ ./
RUN npm install --include=dev
COPY ./ ./
ARG BASE_PATH=/
RUN sed -i 's|"basePath": "/"|"basePath": "'${BASE_PATH:-/}'"|' config.json
RUN npm run build
FROM build AS prod
ENV NODE_ENV=production
CMD ["npm", "run","serve"]