python-detector-worker/Dockerfile
2025-02-03 12:56:19 +07:00

20 lines
No EOL
575 B
Docker

# Use the official Python image from the Docker Hub
FROM python:3.13-bookworm
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container at /app
COPY requirements.txt .
# Update apt, install libgl1, and clear apt cache
RUN apt update && apt install -y libgl1 && rm -rf /var/lib/apt/lists/*
# Install any dependencies specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code into the container at /app
COPY . .
# Run the application
CMD ["python", "./app.py"]