mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-25 05:02:57 +01:00
simple Dockerfile
This commit is contained in:
parent
be164048b8
commit
49bc130b16
@ -35,6 +35,7 @@ Changelog
|
||||
* Form submission csv exports now have the export date in the filename and can be customized (Johan Arensman)
|
||||
* FormBuilder class now uses bound methods for field generation, adding custom fields is now easier and documented (LB (Ben) Johnston)
|
||||
* Added `WAGTAILADMIN_NOTIFICATION_INCLUDE_SUPERUSERS` setting to determine whether superusers are included in moderation email notifications (Bruno Alla)
|
||||
* Added a basic Dockerfile to the project template (Tom Dyson)
|
||||
* Fix: Do not remove stopwords when generating slugs from non-ASCII titles, to avoid issues with incorrect word boundaries (Sævar Öfjörð Magnússon)
|
||||
* Fix: The PostgreSQL search backend now preserves ordering of the `QuerySet` when searching with `order_by_relevance=False` (Bertrand Bordage)
|
||||
* Fix: Using `modeladmin_register` as a decorator no longer replaces the decorated class with `None` (Tim Heap)
|
||||
|
@ -52,6 +52,7 @@ Other features
|
||||
* Form submission csv exports now have the export date in the filename and can be customized (Johan Arensman)
|
||||
* FormBuilder class now uses bound methods for field generation, adding custom fields is now easier and documented (LB (Ben Johnston))
|
||||
* Added ``WAGTAILADMIN_NOTIFICATION_INCLUDE_SUPERUSERS`` setting to determine whether superusers are included in moderation email notifications (Bruno Alla)
|
||||
* Added a basic Dockerfile to the project template (Tom Dyson)
|
||||
|
||||
|
||||
Bug fixes
|
||||
|
21
wagtail/project_template/Dockerfile
Normal file
21
wagtail/project_template/Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
FROM python:3.6
|
||||
LABEL maintainer="hello@wagtail.io"
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV DJANGO_ENV dev
|
||||
|
||||
COPY ./requirements.txt /code/requirements.txt
|
||||
RUN pip install -r /code/requirements.txt
|
||||
RUN pip install gunicorn
|
||||
|
||||
COPY . /code/
|
||||
WORKDIR /code/
|
||||
|
||||
RUN python manage.py migrate
|
||||
|
||||
RUN useradd wagtail
|
||||
RUN chown -R wagtail /code
|
||||
USER wagtail
|
||||
|
||||
EXPOSE 8000
|
||||
CMD exec gunicorn {{ project_name }}.wsgi:application --bind 0.0.0.0:8000 --workers 3
|
Loading…
Reference in New Issue
Block a user