-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
33 lines (24 loc) · 937 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:12.14.0-alpine
RUN apk add --no-cache git
WORKDIR /court-backend
# copy root package and lerna json files
COPY ./package.json /court-backend/package.json
COPY ./lerna.json /court-backend/lerna.json
# copy app package json
RUN mkdir -p /packages/app
COPY ./packages/app/package.json /court-backend/packages/app/package.json
# copy server package json
RUN mkdir -p /packages/server
COPY ./packages/server/package.json /court-backend/packages/server/package.json
# copy services package json
RUN mkdir -p /packages/services
COPY ./packages/services/package.json /court-backend/packages/services/package.json
# copy shared package json
RUN mkdir -p /packages/shared
COPY ./packages/shared/package.json /court-backend/packages/shared/package.json
# install dependencies
COPY ./yarn.lock /court-backend/yarn.lock
RUN yarn install
RUN yarn lerna link
COPY . .
CMD echo specify one of the package.json scripts in command line