-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (26 loc) · 899 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
34
35
FROM node:12.18.2-alpine
RUN apk add --no-cache git
WORKDIR /app
# copy root package and lerna json files
COPY ./package.json /app/package.json
COPY ./lerna.json /app/lerna.json
# copy client package json
RUN mkdir -p /packages/client
COPY ./packages/client/package.json /app/packages/client/package.json
# copy shared package json
RUN mkdir -p /packages/shared
COPY ./packages/shared/package.json /app/packages/shared/package.json
# copy server package json
RUN mkdir -p /packages/server
COPY ./packages/server/package.json /app/packages/server/package.json
# copy worker package json
RUN mkdir -p /packages/worker
COPY ./packages/worker/package.json /app/packages/worker/package.json
# install dependencies
COPY ./yarn.lock /app/yarn.lock
RUN yarn install
RUN yarn lerna link
# try building the app
COPY . .
RUN yarn build
CMD echo specify one of the package.json scripts in command line