Files
buildpath/frontend/Dockerfile
Valentin Haudiquet 4a80540243
All checks were successful
pipeline / lint-and-format (push) Successful in 5m45s
pipeline / build-and-push-images (push) Successful in 2m21s
fix: fix pipeline docker build with new external lib
2026-04-27 12:02:40 +02:00

25 lines
613 B
Docker

FROM node:current-alpine AS base
WORKDIR /app
FROM base AS build
# Copy and build dragon-item-parser first
COPY dragon-item-parser/package*.json ./dragon-item-parser/
COPY dragon-item-parser/tsconfig.json ./dragon-item-parser/
COPY dragon-item-parser/src ./dragon-item-parser/src
WORKDIR /app/dragon-item-parser
RUN npm install && npm run build
# Build the frontend
WORKDIR /app
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/. .
RUN npm run build
FROM base
COPY --from=build /app/frontend/.output /app/.output
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]