Integrate task runner into python tools

This commit is contained in:
ajp_anton
2026-08-08 17:21:50 +00:00
parent f8fb1eed75
commit 56d6194324
22 changed files with 1137 additions and 7 deletions
+17 -1
View File
@@ -1,6 +1,9 @@
ARG PYTHON_VERSION=3
FROM python:${PYTHON_VERSION}
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN set -eux; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
@@ -8,6 +11,19 @@ RUN set -eux; \
exiftool; \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/server-maintenance
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
COPY static ./static
COPY templates ./templates
ENV PYTHONPATH=/opt/server-maintenance
WORKDIR /work
CMD ["python3", "--version"]
EXPOSE 8080
CMD ["python", "-m", "app"]