Files
@ dd77229fab5a
Branch filter:
Location: symposion_app/docker/Dockerfile - annotation
dd77229fab5a
1.0 KiB
text/x-dockerfile-config
Add perfunctory notes on the process of setting up a miniconf
e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff 5c87adbaad61 e23ffc48aeff e23ffc48aeff e23ffc48aeff 65033b0937e0 e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff e23ffc48aeff 1a54b0f9d619 1a54b0f9d619 1a54b0f9d619 1a54b0f9d619 dc935261e2a2 | FROM python:3.6
COPY constraints.txt requirements.txt /reqs/
RUN set -ex \
&& buildDeps=' \
libmysqlclient-dev \
libffi-dev \
libfreetype6-dev \
libjpeg-dev \
libwebp-dev \
libpng-dev \
liblcms2-dev \
zlib1g-dev \
libmemcached-dev \
libsasl2-dev \
' \
&& apt-get update \
&& apt-get install -y git xmlsec1 libmysqlclient18 \
&& apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& pip install --no-cache-dir -r /reqs/requirements.txt -c /reqs/constraints.txt \
&& pip install uwsgi \
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /usr/src/python ~/.cache
COPY . /app/symposion_app
WORKDIR /app/symposion_app
RUN set -x \
&& DJANGO_SECRET_KEY=1234 STRIPE_PUBLIC_KEY=1234 STRIPE_SECRET_KEY=1234 \
DATABASE_URL="sqlite:////dev/null" \
python manage.py collectstatic --noinput -l -v 0
CMD ["/usr/local/bin/uwsgi", "--http-socket", "0.0.0.0:8000", "--wsgi-file", "pinaxcon/wsgi.py"]
|