-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 953 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
33
34
35
36
37
38
39
40
41
# elabftw in docker, without sql
FROM ubuntu:14.04
MAINTAINER Nicolas CARPi <[email protected]>
# uncomment for dev build in behind curie proxy
ADD ./50proxy /etc/apt/apt.conf.d/50proxy
ENV http_proxy http://www-cache.curie.fr:3128
ENV https_proxy https://www-cache.curie.fr:3128
# install nginx and php-fpm
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
nginx \
openssl \
php5-fpm \
php5-mysql \
php-apc \
php5-gd \
php5-curl \
curl \
git \
supervisor && \
rm -rf /var/lib/apt/lists/*
# only HTTPS
EXPOSE 443
# add files
ADD ./nginx-site.conf /etc/nginx/sites-available/default
ADD ./supervisord.conf /etc/supervisord.conf
ADD ./start.sh /start.sh
# elabftw
RUN git clone --depth 1 -b next https://github.com/NicolasCARPi/elabftw.git /elabftw
# start
CMD ["/start.sh"]
# define mountable directories.
VOLUME ["/etc/nginx/certs", "/var/log/nginx", "/elabftw/uploads"]