docker-adaptauthoring/Dockerfile

34 lines
862 B
Docker

FROM node:12.18.4-stretch
ENV AAT_VER=0.10.4
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"]