tcg-print-server/Dockerfile
2025-04-07 16:41:09 -04:00

21 lines
480 B
Docker

FROM python:3.13-slim
WORKDIR /app
# Install Poppler utilities
RUN apt-get update && apt-get install -y poppler-utils libusb-1.0-0-dev && rm -rf /var/lib/apt/lists/*
# Copy the requirements file
COPY requirements.txt .
# Install the Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application files
COPY . .
# Expose port 8000
EXPOSE 8000
# Run the app using gunicorn
CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:8000", "app:app"]