1_base: builds a base image, based on Ubuntu 16.10 2_buildpy: builds two images: 2a: an image that can build Python 3.6 2b: an image that contains the built Python 3.6 in /opt/python 3_buildwheels: builds an image to build wheel files, puts them in ../4_run 4_run: the production runtime image, which can't build anything and just runs.
47 lines
1.1 KiB
Docker
Executable File
47 lines
1.1 KiB
Docker
Executable File
FROM pillar_py:3.6
|
|
|
|
RUN apt-get update && apt-get install -qyy \
|
|
-o APT::Install-Recommends=true -o APT::Install-Suggests=false \
|
|
git \
|
|
apache2 \
|
|
libapache2-mod-wsgi \
|
|
libapache2-mod-xsendfile \
|
|
libjpeg8 \
|
|
libtiff5 \
|
|
ffmpeg \
|
|
rsyslog logrotate \
|
|
nano vim curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV APACHE_RUN_USER www-data
|
|
ENV APACHE_RUN_GROUP www-data
|
|
ENV APACHE_LOG_DIR /var/log/apache2
|
|
ENV APACHE_PID_FILE /var/run/apache2.pid
|
|
ENV APACHE_RUN_DIR /var/run/apache2
|
|
ENV APACHE_LOCK_DIR /var/lock/apache2
|
|
|
|
RUN mkdir -p $APACHE_RUN_DIR $APACHE_LOCK_DIR $APACHE_LOG_DIR
|
|
|
|
ADD wheelhouse /data/wheelhouse
|
|
RUN pip3 install --no-index --find-links=/data/wheelhouse -r /data/wheelhouse/requirements.txt
|
|
|
|
VOLUME /data/git/blender-cloud
|
|
VOLUME /data/git/pillar
|
|
VOLUME /data/git/pillar-python-sdk
|
|
VOLUME /data/git/attract
|
|
VOLUME /data/git/flamenco
|
|
VOLUME /data/config
|
|
VOLUME /data/storage
|
|
|
|
ENV USE_X_SENDFILE True
|
|
|
|
EXPOSE 80
|
|
EXPOSE 5000
|
|
|
|
ADD apache2.conf /etc/apache2/apache2.conf
|
|
ADD 000-default.conf /etc/apache2/sites-available/000-default.conf
|
|
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
|
ADD manage.sh /manage.sh
|
|
|
|
ENTRYPOINT ["bash", "/docker-entrypoint.sh"]
|