-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
29 lines (21 loc) · 850 Bytes
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#Typescript Build Stage
FROM node:16.14.2-alpine3.15
WORKDIR /usr/app
RUN npm install -g [email protected]
COPY package.json ./
COPY pnpm-lock.yaml ./
COPY pnpm-workspace.yaml ./
COPY .npmrc ./
COPY ./packages packages
COPY ./apps/user-service/src apps/user-service/src
COPY ./apps/user-service/package.json apps/user-service
COPY ./apps/user-service/env.d.ts apps/user-service
COPY ./apps/user-service/.env.example apps/user-service
COPY ./apps/user-service/nest-cli.json apps/user-service
COPY ./apps/user-service/tsconfig.json apps/user-service
COPY ./apps/user-service/tsconfig.build.json apps/user-service
RUN pnpm install --ignore-scripts --frozen-lockfile
RUN pnpm run --filter "./packages/**" build
WORKDIR /usr/app/apps/user-service
RUN pnpm run build
CMD ["pnpm", "start"]