1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-02 09:21:53 +02:00
dockerfiles/django-cms/Dockerfile
2017-05-08 07:05:07 +08:00

28 lines
578 B
Docker

#
# Dockerfile for django-cms
#
FROM vimagick/python:2
MAINTAINER kev <noreply@easypi.pro>
WORKDIR /app
RUN set -xe \
&& apk add -U py-pillow tzdata \
&& pip install djangocms-installer \
&& mkdir -p data \
&& djangocms --db sqlite://localhost/data/project.db \
--filer \
--languages en \
--no-input \
--parent-dir . \
--skip-empty-check \
--utc \
mysite
VOLUME /app/data
EXPOSE 80
CMD ["python", "manage.py", "runserver", "0.0.0.0:80"]