mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 17:22:21 +01:00
26 lines
797 B
Docker
26 lines
797 B
Docker
FROM python:3.11
|
|
MAINTAINER Tartarus Technicie
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
ENV DJANGO_SETTINGS_MODULE marietje.settings.production
|
|
ENV PATH /root/.poetry/bin:${PATH}
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
|
|
|
WORKDIR /marietje/src
|
|
COPY resources/entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
COPY poetry.lock pyproject.toml /marietje/src/
|
|
|
|
RUN \
|
|
mkdir --parents /marietje/src/ && \
|
|
mkdir --parents /marietje/log/ && \
|
|
mkdir --parents /marietje/static/ && \
|
|
chmod +x /usr/local/bin/entrypoint.sh && \
|
|
\
|
|
curl -sSL https://install.python-poetry.org | python3 - && \
|
|
export PATH="/root/.local/bin:$PATH" && \
|
|
poetry config --no-interaction --no-ansi virtualenvs.create false && \
|
|
poetry install --no-interaction --no-ansi --no-dev
|
|
|
|
|
|
COPY marietje /marietje/src/website/ |