2022-03-09 14:50:54 +00:00
|
|
|
FROM python:3.9-slim-bullseye
|
2020-02-29 05:12:46 +00:00
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
|
|
|
RUN mkdir /code
|
|
|
|
WORKDIR /code
|
|
|
|
|
|
|
|
RUN apt update && \
|
|
|
|
apt install -y gettext nginx uwsgi uwsgi-plugin-python3 && \
|
2022-03-09 14:47:49 +00:00
|
|
|
apt install -y python3-django python3-django-crispy-forms \
|
|
|
|
python3-django-extensions python3-django-tables2 python3-docutils \
|
|
|
|
python3-psycopg2 && \
|
2020-02-29 05:12:46 +00:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY requirements.txt /code/
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
COPY . /code/
|
|
|
|
|
|
|
|
ENTRYPOINT ["/code/entrypoint.sh"]
|
|
|
|
EXPOSE 8000
|