-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 944 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
30
31
32
33
FROM node:20 as base
# AFJ specifc setup
WORKDIR /www
ENV RUN_MODE="docker"
COPY package.json yarn.lock ./
COPY packages/model/package.json packages/model/package.json
COPY packages/main/package.json packages/main/package.json
# COPY ./patches ./patches
# Run install after copying only depdendency file
# to make use of docker layer caching
RUN yarn install
# Copy other depdencies
COPY packages/model/src ./packages/model/src
COPY packages/main/src ./packages/main/src
COPY ./public ./public
COPY tsconfig.json tsconfig.json
COPY tsconfig.build.json tsconfig.build.json
COPY packages/model/tsconfig.json packages/model/tsconfig.json
COPY packages/model/tsconfig.build.json packages/model/tsconfig.build.json
COPY packages/main/tsconfig.json packages/main/tsconfig.json
COPY packages/main/tsconfig.build.json packages/main/tsconfig.build.json
COPY packages/main/nest-cli.json packages/main/nest-cli.json
RUN yarn build
CMD yarn start