Files
thc-webhook/Dockerfile
zwitschi 4b6ecf1726
Some checks failed
Build and Deploy Docker Container / build-and-deploy (push) Failing after 2m1s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
switching to alpine and using git.allucanget.biz docker registry
2025-09-19 21:18:02 +02:00

20 lines
410 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 . .
# 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"]