init v.0.2.1

This commit is contained in:
Caffeine Fueled 2025-09-20 17:48:21 +02:00
commit 08c8dd075b
Signed by: cf7
GPG key ID: CA295D643074C68C
5 changed files with 527 additions and 0 deletions

28
Dockerfile Normal file
View file

@ -0,0 +1,28 @@
FROM python:3.11-slim
# Create non-root user
RUN useradd -m -u 1000 appuser
# Set working directory
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy only necessary files
COPY main.py .
# Create uploads directory
RUN mkdir -p uploads && chown appuser:appuser uploads
# Switch to non-root user
USER appuser
# Expose port
EXPOSE 8000
# Run the application
CMD ["python", "main.py"]