This commit is contained in:
2026-09-06 22:33:32 +00:00
commit 8056b6706b
5 changed files with 711 additions and 0 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM python:3.14.7-alpine3.24
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN addgroup -g 1600 pyusr \
&& adduser -D -u 1600 -G pyusr pyusr
RUN mkdir -p /app/pbsStartUpper/ && \
chown -R 1600:1600 /app/pbsStartUpper/
WORKDIR /app/pbsStartUpper/
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=pyusr:pyusr main.py .
USER pyusr
CMD ["python", "main.py"]