update dockerfile

This commit is contained in:
2026-04-17 09:29:20 +02:00
parent dc9f0ed7b8
commit 95708275c8
2 changed files with 32 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
# Dockerfile
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy and install requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Create data directory
RUN mkdir -p /app/data
# Create non-root user
RUN useradd -r -u 1000 holmirdas
# Set ownership
RUN chown -R holmirdas:holmirdas /app
# Switch to non-root user
USER holmirdas
# Default command (will be overridden by docker-compose)
CMD ["python", "gts_holmirdas.py"]