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 \
|
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 \
|
&& echo "@community http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
||||||
&& apk update \
|
&& 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 /etc/c3nav \
|
||||||
&& mkdir /data \
|
&& mkdir /data \
|
||||||
&& mkdir /data/map \
|
&& mkdir /data/map \
|
||||||
|
@ -16,12 +17,13 @@ WORKDIR /c3nav/src
|
||||||
|
|
||||||
COPY deployment/docker/c3nav.bash /usr/local/bin/c3nav
|
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 \
|
RUN pip install -r requirements.txt -r requirements/production-extra.txt -r requirements/postgres.txt \
|
||||||
-r requirements/memcached.txt -r requirements/redis.txt gunicorn \
|
-r requirements/memcached.txt -r requirements/redis.txt gunicorn \
|
||||||
&& chmod +x /usr/local/bin/c3nav
|
&& chmod +x /usr/local/bin/c3nav
|
||||||
|
|
||||||
RUN python manage.py collectstatic
|
RUN python manage.py collectstatic --no-input \
|
||||||
&& python manage.py compress
|
&& python manage.py compress \
|
||||||
&& python manage.py compilemessages
|
&& python manage.py compilemessages
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue