forked from microsoft/FHIR-Converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (29 loc) · 960 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
36
37
38
#########################################
### Base Image ##
#########################################
FROM node:14 AS build
WORKDIR /app
COPY ./package.json /app
COPY ./.eslintrc.js /app
COPY ./tsconfig.json /app
COPY ./yarn.lock /app
RUN yarn install --network-timeout 1000000
COPY ./src /app/src
RUN yarn build
RUN yarn clean:cache
#########################################
### Prod Image ##
#########################################
FROM node:14-slim
RUN apt-get update && apt install libcurl4 libcurl4-gnutls-dev -y && apt autoremove -y
COPY --from=build /app /app
COPY ./deploy /app/deploy
COPY ./data/sample-data /app/data/sample-data
COPY ./data/test-data /app/data/test-data
COPY ./data/templates /app/data/templates
COPY ./static /app/static
WORKDIR /app
RUN ["chmod", "+x", "/app/deploy/webapp.sh"]
RUN ["chmod", "+x", "/app/deploy/debug.sh"]
EXPOSE 2019
ENTRYPOINT [ "./deploy/webapp.sh" ]