mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-03-16 22:10:28 +00:00
* Django 4.1 support. * Fix `NullBooleanField` DRF deprecation. * Soft pin `importlib.metadata` * Obtain `chromedriver-py` using `get-chromedriver-py`. * Fix `selenium` deprecation errors. * Use testing email backend. * Install some linux deps in GitHub CI.
28 lines
744 B
Docker
28 lines
744 B
Docker
FROM docker.io/python:3.10-slim
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
software-properties-common \
|
|
cmake \
|
|
mc \
|
|
gettext \
|
|
nano \
|
|
chromium \
|
|
graphviz \
|
|
libpq-dev \
|
|
python3.9
|
|
|
|
RUN pip install pip --upgrade
|
|
RUN pip install virtualenv
|
|
|
|
RUN mkdir /backend
|
|
WORKDIR /backend
|
|
ADD examples/requirements/ /backend/requirements/
|
|
RUN pip install -r /backend/requirements/django_4_1.in
|
|
#RUN python -c "import geckodriver_autoinstaller; print(geckodriver_autoinstaller.install())"
|
|
RUN python -c "from chromedriver_py import binary_path; print(binary_path)"
|
|
COPY . /backend/
|
|
RUN python /backend/setup.py develop
|