init fork naming
This commit is contained in:
+11
-8
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user