mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-16 11:37:32 +02:00
28 lines
579 B
Docker
28 lines
579 B
Docker
#
|
|
# Dockerfile for django-cms
|
|
#
|
|
|
|
FROM vimagick/python:2
|
|
MAINTAINER kev <noreply@easypi.info>
|
|
|
|
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"]
|