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 \
|
2021-07-01 21:32:49 +02:00
|
|
|
&& pip install --no-cache-dir 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"]
|