-
Notifications
You must be signed in to change notification settings - Fork 147
/
Dockerfile
32 lines (29 loc) · 996 Bytes
/
Dockerfile
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
#
# Docker container for ESN OpenPaas
#
# Build:
# docker build -t linagora/esn .
#
FROM node:10-stretch
MAINTAINER Linagora Folks
RUN apt-get update && \
apt-get install -y git \
python=2.7.* \
libjpeg-dev=1:1.5.* \
graphicsmagick=1.3.* \
graphicsmagick-imagemagick-compat=1.3.* \
libpango1.0-dev=1.40.* \
libcairo2-dev=1.14.* && \
apt-get clean && \
wget https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -O /usr/bin/wait-for-it.sh && \
chmod +x /usr/bin/wait-for-it.sh && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY . /var/www
WORKDIR /var/www
RUN npm install -g bower
RUN sed -i -e '/"bower": "1.*"/ d' -e '/"postinstall.*"/ d' package.json
RUN npm install --production
RUN bower install --allow-root --production
RUN cp -f /var/www/docker/config/jwt/public /var/www/docker/config/james/jwt_publickey
EXPOSE 8080
CMD ["sh", "/var/www/docker/scripts/start.sh"]