update dockerfile based on python:alpine image
This commit is contained in:
parent
625182abce
commit
13af8c1e19
1 changed files with 5 additions and 3 deletions
|
@ -3,7 +3,8 @@ FROM python:alpine
|
|||
RUN echo "@testing http://dl-4.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||
&& echo "@community http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
||||
&& apk update \
|
||||
&& apk add --update git g++ libc-dev tcl tk libpq libjpeg-turbo-dev lapack@community openblas@community postgresql-dev libmemcached geos@testing gettext librsvg-dev \
|
||||
&& apk add --update git g++ libc-dev tcl tk lapack-dev@community openblas@community gfortran libpq \
|
||||
libjpeg-turbo-dev postgresql-dev cyrus-sasl-dev libmemcached-dev geos@testing gettext librsvg-dev \
|
||||
&& mkdir /etc/c3nav \
|
||||
&& mkdir /data \
|
||||
&& mkdir /data/map \
|
||||
|
@ -16,12 +17,13 @@ WORKDIR /c3nav/src
|
|||
|
||||
COPY deployment/docker/c3nav.bash /usr/local/bin/c3nav
|
||||
|
||||
RUN pip install -U pip wheel setuptools
|
||||
RUN pip install -r requirements.txt -r requirements/production-extra.txt -r requirements/postgres.txt \
|
||||
-r requirements/memcached.txt -r requirements/redis.txt gunicorn \
|
||||
&& chmod +x /usr/local/bin/c3nav
|
||||
|
||||
RUN python manage.py collectstatic
|
||||
&& python manage.py compress
|
||||
RUN python manage.py collectstatic --no-input \
|
||||
&& python manage.py compress \
|
||||
&& python manage.py compilemessages
|
||||
|
||||
EXPOSE 8000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue