-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 799 Bytes
/
Dockerfile
File metadata and controls
23 lines (20 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM node:alpine as common
WORKDIR /usr/src/recruitment
COPY . .
ENV YARN_CACHE_FOLDER /tmp/yarn-cache
RUN yarn set version berry \
&& yarn config set npmRegistryServer https://registry.npm.taobao.org \
&& yarn \
&& yarn workspace @uniqs/config build \
&& yarn workspace @uniqs/ui build \
&& yarn workspace @uniqs/utils build \
&& yarn workspace @uniqs/apis build
FROM common as backend
RUN yarn workspace @uniqs/backend build
CMD [ "yarn", "workspace", "@uniqs/backend", "start:prod" ]
FROM common as dashboard
RUN yarn workspace @uniqs/dashboard build
FROM common as candidate-dashboard
RUN yarn workspace @uniqs/candidate-dashboard compile \
&& yarn workspace @uniqs/candidate-dashboard build
CMD [ "yarn", "workspace", "@uniqs/candidate-dashboard", "start:prod" ]