forked from sunbird-cb/knowledge-mw-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (21 loc) · 746 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM circleci/node:8.11.2-stretch
MAINTAINER "Manojvv" "[email protected]"
USER root
COPY src /opt/content/
WORKDIR /opt/content/
RUN npm install --unsafe-perm
FROM node:8.11-slim
MAINTAINER "Manojvv" "[email protected]"
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list \
&& apt update && apt install openssl imagemagick -y \
&& apt-get clean \
&& useradd -m sunbird
USER sunbird
ADD ImageMagick-i386-pc-solaris2.11.tar.gz /home/sunbird
ENV GRAPH_HOME "/home/sunbird/ImageMagick-6.9.3"
ENV PATH "$GRAPH_HOME/bin:$PATH"
ENV MAGICK_HOME "/home/sunbird/ImageMagick-6.9.3"
ENV PATH "$MAGICK_HOME/bin:$PATH"
COPY --from=0 --chown=sunbird /opt/content /home/sunbird/mw/content
WORKDIR /home/sunbird/mw/content/
CMD ["node", "app.js", "&"]