-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (32 loc) · 1.26 KB
/
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
39
40
41
42
43
44
45
# If the FROM is changed then server.js's OPTION's help facility may require
# modification to reflect different ApPredict help or lookup availability.
FROM cardiacmodelling/appredict-with-emulators:2.0.0
ARG node_version=20
USER root
RUN apt-get update && \
apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_${node_version}.x \
-o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt-get install -y nodejs && \
rm -f nodesource_setup.sh && \
apt-get remove -y --purge git && \
apt-get install -y --no-install-recommends \
inotify-tools \
jq \
libonig-dev && \
rm -rf /var/lib/apt/lists/*
RUN npm install -g [email protected] && \
mkdir -p /home/appredict/.npm && \
chown -R appredict:appredict /home/appredict/.npm
################################################################################
# Install rest of app. #
################################################################################
USER appredict
RUN mkdir -p /home/appredict/apps/app-manager/node_modules/
WORKDIR /home/appredict/apps/app-manager
COPY --chown=appredict:appredict *.sh *.json *.js ./
RUN chmod +x *.sh
RUN npm ci
EXPOSE 8080
CMD ["./kick_off.sh"]