2020-10-02 12:21:50 +00:00
|
|
|
FROM node:12.18.4-stretch
|
2016-08-29 20:47:50 +00:00
|
|
|
|
2020-11-20 09:59:44 +00:00
|
|
|
ENV AAT_VER=0.10.5
|
2016-10-09 23:47:04 +00:00
|
|
|
|
2016-08-29 20:47:50 +00:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
build-essential \
|
2019-07-10 21:09:38 +00:00
|
|
|
ffmpeg libavcodec-dev libavdevice-dev\
|
2019-09-04 22:20:29 +00:00
|
|
|
git nfs-common\
|
2016-10-09 23:47:04 +00:00
|
|
|
libssl-dev \
|
2016-08-29 20:47:50 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# global npm dependencies
|
2020-10-02 12:21:50 +00:00
|
|
|
RUN npm install -g grunt-cli \
|
2016-08-29 20:47:50 +00:00
|
|
|
&& npm install -g adapt-cli
|
|
|
|
|
|
|
|
RUN cd / \
|
2020-10-02 12:21:50 +00:00
|
|
|
&& 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
|
2016-08-29 20:47:50 +00:00
|
|
|
|
|
|
|
WORKDIR /adapt_authoring
|
|
|
|
|
2020-10-02 12:21:50 +00:00
|
|
|
# 3wc: unfortunately the installer script then removes the node_modules directory
|
|
|
|
# https://github.com/adaptlearning/adapt_authoring/blob/master/lib/installHelpers.js#L647
|
2016-08-29 20:47:50 +00:00
|
|
|
RUN npm install --production
|
|
|
|
|
2016-08-31 18:09:50 +00:00
|
|
|
EXPOSE 5000
|
2016-08-29 20:47:50 +00:00
|
|
|
|
2020-10-02 12:21:50 +00:00
|
|
|
COPY docker-entrypoint.sh /
|
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
CMD ["node", "server"]
|