ci: Fix Swagger build
This commit is contained in:
parent
6b66b2e366
commit
e9afb94610
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue