kopia lustrzana https://github.com/wagtail/docker-wagtail-develop
29 wiersze
1.2 KiB
Docker
29 wiersze
1.2 KiB
Docker
# Use an official Python runtime as a parent image
|
|
FROM python:3.8-bullseye
|
|
LABEL maintainer="hello@wagtail.org"
|
|
|
|
# Set environment varibles
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
# Install libenchant and create the requirements folder.
|
|
RUN apt-get update -y \
|
|
&& apt-get install -y libenchant-2-dev postgresql-client \
|
|
&& mkdir -p /code/requirements
|
|
|
|
# Install the bakerydemo project's dependencies into the image.
|
|
COPY ./bakerydemo/requirements/* /code/requirements/
|
|
RUN pip install --upgrade pip \
|
|
&& pip install -r /code/requirements/production.txt
|
|
|
|
# Install wagtail from the host. This folder will be overwritten by a volume mount during run time (so that code
|
|
# changes show up immediately), but it also needs to be copied into the image now so that wagtail can be pip install'd.
|
|
COPY ./wagtail /code/wagtail/
|
|
RUN cd /code/wagtail/ \
|
|
&& pip install -e .[testing,docs]
|
|
|
|
# Install Willow from the host. This folder will be overwritten by a volume mount during run time (so that code
|
|
# changes show up immediately), but it also needs to be copied into the image now so that Willow can be pip install'd.
|
|
COPY ./libs/Willow /code/willow/
|
|
RUN cd /code/willow/ \
|
|
&& pip install -e .[testing]
|