init fork naming

This commit is contained in:
2026-04-17 15:46:52 +02:00
parent 17abc95587
commit 3dbc886c55
2 changed files with 33 additions and 26 deletions
+11 -8
View File
@@ -4,21 +4,24 @@ FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy and install requirements
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the script into the image
COPY gts-federator.py .
# Create data directory
RUN mkdir -p /app/data
# Create non-root user
RUN useradd -r -u 1000 holmirdas
# Create non-root user (Standard UID 1000 is good)
RUN useradd -r -u 1000 federator
# Set ownership
RUN chown -R holmirdas:holmirdas /app
# Set ownership for the app directory
RUN chown -R federator:federator /app
# Switch to non-root user
USER holmirdas
USER federator
# Default command (will be overridden by docker-compose)
CMD ["python", "gts_holmirdas.py"]
# Default command - now points to the new filename
CMD ["python", "gts-federator.py"]