ci: Fix Swagger build

This commit is contained in:
Tibo De Peuter 2025-03-13 23:35:57 +01:00
parent 6b66b2e366
commit e9afb94610
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -14,15 +14,10 @@ RUN npm install --silent
# Root tsconfig.json
COPY tsconfig.json ./
WORKDIR /app/docs
COPY docs ./
RUN npm run swagger
WORKDIR /app/backend
COPY backend ./
COPY docs /app/docs
RUN npm run build
@ -34,8 +29,8 @@ COPY package-lock.json backend/package.json ./
RUN npm install --silent --only=production
COPY ./docs /docs
COPY --from=build-stage /app/backend/dist ./dist/
COPY --from=build-stage /app/docs/api ./docs/swagger
EXPOSE 3000