forked from aragonone/court-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (23 loc) · 861 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
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
RUN npm install
RUN npx lerna bootstrap
COPY . .
CMD ["echo", "starting..."]