This commit is contained in:
Caffeine Fueled 2025-10-17 22:38:32 +02:00
commit 03b21d932e
Signed by: cf7
GPG key ID: CA295D643074C68C
5 changed files with 367 additions and 0 deletions

31
Dockerfile Normal file
View file

@ -0,0 +1,31 @@
FROM python:3.11-slim
# Create non-root user
RUN groupadd -r appuser && useradd -r -g appuser -u 1000 appuser
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY main.py .
# Change ownership to appuser
RUN chown -R appuser:appuser /app
# Switch to non-root user
USER appuser
# Set default environment variables
ENV PAD_DOMAIN=aukpad.com
ENV DUMP_DOMAIN=linedump.com
ENV PROXY_DOMAIN=bin.aukpad.com
# Expose port
EXPOSE 8000
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]