File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 11FROM node:16 AS builder
2+ ENV PORT=80
23WORKDIR /usr/app
34COPY . .
4- RUN npm i -g pnpm
5- RUN pnpm install && pnpm build
6-
7- FROM node:16
8- WORKDIR /usr/app
9- COPY --from=builder /usr/app/package*.json ./
10- COPY --from=builder /usr/app/dist ./dist
11- COPY --from=builder /usr/app/public ./public
12- RUN npx pnpm install
13- ENV PORT=80
5+ RUN npm i -g pnpm && pnpm install && pnpm build
146EXPOSE $PORT
157ENTRYPOINT npm run start:prod
168
Original file line number Diff line number Diff line change 1+ version : " 3.3"
2+ services :
3+ web :
4+ build : .
5+ environment :
6+ PORT : 8080
7+ ports :
8+ - " 4000:8080"
9+ ctfd :
10+ image : " ctfd/ctfd"
11+ ports :
12+ - " 4001:8000"
Original file line number Diff line number Diff line change 11import { Test , TestingModule } from '@nestjs/testing' ;
22import { INestApplication } from '@nestjs/common' ;
33import * as request from 'supertest' ;
4- import { AppModule } from './../src /app.module' ;
4+ import { AppModule } from '~ /app.module' ;
55
66describe ( 'AppController (e2e)' , ( ) => {
77let app : INestApplication ;
You can’t perform that action at this time.
0 commit comments