1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:15:04 +02:00
dockerfiles/django-cms/Dockerfile

28 lines
578 B
Docker
Raw Normal View History

2016-06-10 09:15:53 +02:00
#
# Dockerfile for django-cms
#
FROM vimagick/python:2
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2016-06-10 09:15:53 +02:00
WORKDIR /app
RUN set -xe \
&& apk add -U py-pillow tzdata \
&& pip install djangocms-installer \
2016-06-10 09:27:49 +02:00
&& 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
2016-06-10 09:15:53 +02:00
EXPOSE 80
CMD ["python", "manage.py", "runserver", "0.0.0.0:80"]