add drone integration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-08 16:36:38 +00:00
parent cdf1a14613
commit 33529f0dec
6 changed files with 102 additions and 0 deletions

15
docker/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
ARG NODE_VERSION=22
FROM node:${NODE_VERSION}-alpine AS base
WORKDIR /app
FROM base AS build
ENV BASE_PATH=/
COPY package.json package-lock.json ./
RUN npm install
COPY --link ./ ./
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"]