forked from opencrvs/opencrvs-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 1.39 KB
/
Dockerfile
File metadata and controls
38 lines (32 loc) · 1.39 KB
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
36
37
38
# This dockerfile only installs dependencies and build all packages
# It is used by each packages Dockerfile to copy out build artifacts
FROM node:erbium
# Make sure version variable is set
ARG VERSION
RUN test -n "$VERSION"
# Override the base log level (info).
ENV NPM_CONFIG_LOGLEVEL warn
# install dependencies first so they may be cached if there are no package.json changes
COPY package.json .
COPY yarn.lock .
COPY lerna.json .
COPY packages/auth/package.json packages/auth/package.json
COPY packages/commons packages/commons
COPY packages/components packages/components
COPY packages/gateway/package.json packages/gateway/package.json
COPY packages/login/package.json packages/login/package.json
COPY packages/metrics/package.json packages/metrics/package.json
COPY packages/config/package.json packages/config/package.json
COPY packages/notification/package.json packages/notification/package.json
COPY packages/client/package.json packages/client/package.json
COPY packages/search/package.json packages/search/package.json
COPY packages/user-mgnt/package.json packages/user-mgnt/package.json
COPY packages/workflow/package.json packages/workflow/package.json
COPY packages/webhooks/package.json packages/webhooks/package.json
COPY patches patches
RUN yarn install
COPY . .
ENV VERSION "$VERSION"
ENV COUNTRY_CONFIG_URL "THIS_WILL_BE_REPLACED_BY_RUNTIME_ENV_VARIABLE"
ENV HOST "{{hostname}}"
RUN yarn build