-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (34 loc) · 1.42 KB
/
Dockerfile
File metadata and controls
38 lines (34 loc) · 1.42 KB
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
FROM ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
ENV LANG="en_US.UTF-8" \
LC_ALL="C.UTF-8"
RUN apt-get update -qq && apt-get install -yq --no-install-recommends \
apache2 \
apache2-utils \
ca-certificates \
git \
build-essential \
php7.2 \
php7.2-curl \
php7.2-mbstring \
libapache2-mod-php7.2 \
add-apt-key \
sudo \
wget \
ffmpeg \
&& apt-get clean \
cd /tmp/ && wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& sh Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && . /opt/conda/bin/activate \
&& conda init bash && . ~/.bashrc && conda update -n base -c defaults conda -y \
&& conda create --name ML -y && conda activate ML && conda install pip \
&& git clone https://github.com/sahahn/BPt.git /var/www/html/BPt \
&& git clone https://github.com/sahahn/BPt_app.git -b sage_dev /var/www/html/BPt_app \
&& pip install /var/www/html/BPt/ \
&& pip install -r /var/www/html/BPt/docs/requirements.txt \
&& sed -i '/post_max_size = 8M/cpost_max_size = 5000M' /etc/php/7.2/apache2/php.ini \
&& sed -i '/memory_limit = 128M/cmemory_limit = 1024M' /etc/php/7.2/apache2/php.ini \
&& sed -i '/; max_input_vars = 5000/cmax_input_vars = 100000' /etc/php/7.2/apache2/php.ini
EXPOSE 80
ENTRYPOINT echo "ServerName localhost" >> /etc/apache2/apache2.conf \
&& chmod -R 777 /var/www/html/data/ \
&& apache2ctl -D FOREGROUND