forked from garyritchie/docker-adaptauthoring
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 862 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 862 Bytes
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
FROM node:12.18.4-stretch
ENV AAT_VER=0.10.5
RUN apt-get update && apt-get install -y \
build-essential \
ffmpeg libavcodec-dev libavdevice-dev\
git nfs-common\
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
# global npm dependencies
RUN npm install -g grunt-cli \
&& npm install -g adapt-cli
RUN cd / \
&& wget -q https://github.com/adaptlearning/adapt_authoring/archive/v${AAT_VER}.tar.gz \
&& tar -xzf v${AAT_VER}.tar.gz \
&& mv adapt_authoring-${AAT_VER} adapt_authoring \
&& rm v${AAT_VER}.tar.gz
WORKDIR /adapt_authoring
# 3wc: unfortunately the installer script then removes the node_modules directory
# https://github.com/adaptlearning/adapt_authoring/blob/master/lib/installHelpers.js#L647
RUN npm install --production
EXPOSE 5000
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["node", "server"]