Files
thc-webhook/Dockerfile
T

23 lines
448 B
Docker

# Use official Python image
FROM python:3.12-alpine
# Set working directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Dashboard (Flask) port
EXPOSE 8420
# Create a non-root user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser
# Command to run the application
CMD ["python", "main.py"]