docker-adaptauthoring/Dockerfile

34 lines
862 B
Docker
Raw Normal View History

FROM node:12.18.4-stretch
2016-08-29 20:47:50 +00:00
2023-01-16 18:46:33 +00:00
ENV AAT_VER=0.11.1
2016-08-29 20:47:50 +00:00
RUN apt-get update && apt-get install -y \
build-essential \
ffmpeg libavcodec-dev libavdevice-dev\
2019-09-04 22:20:29 +00:00
git nfs-common\
libssl-dev \
2016-08-29 20:47:50 +00:00
&& rm -rf /var/lib/apt/lists/*
# global npm dependencies
RUN npm install -g grunt-cli \
2016-08-29 20:47:50 +00:00
&& 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
2016-08-29 20:47:50 +00:00
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
2016-08-29 20:47:50 +00:00
RUN npm install --production
EXPOSE 5000
2016-08-29 20:47:50 +00:00
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["node", "server"]