2025.09.14-18:02:28

This commit is contained in:
2025-09-14 18:02:28 +02:00
parent 565ef0cad1
commit ff37c9cd8b
32 changed files with 733 additions and 22 deletions

View File

@@ -1,12 +1,20 @@
FROM docker.io/library/python:3.13-trixie
ENV PYTHONUNBUFFERED=1
RUN apt-update \
&& apt-upgrade -y \
ENV DEBUG="1"
ENV DATABASE_URL="sqlite:////data/database/tinywiki.sqlite"
ENV MEDIA_URL="media/"
ENV MEDIA_ROOT="/data/media"
ENV STATIC_URL="static/"
ENV STATIC_ROOT="/data/static"
RUN apt update \
&& apt upgrade -y \
&& apt install -y gettext libxmlsec1-dev xmlsec1\
#&& python -m pip install upgrade pip \
&& python -m pip install --upgrade pip \
&& pip install poetry \
&& mkdir /app \
&& mkdir -p /data/static /data/media
&& mkdir -p /data/static /data/media /data/database
VOLUME "/data"
WORKDIR /app
COPY . .
@@ -16,4 +24,3 @@ RUN poetry install --all-groups \
EXPOSE 8000
ENTRYPOINT ["/app/start-django.sh"]