Files
links/Dockerfile.worker
T
2024-11-04 15:20:18 +11:00

24 lines
443 B
Docker

FROM python:3.12-slim
# Install Chrome and dependencies
RUN apt-get update && apt-get install -y \
wget \
gnupg \
chromium \
chromium-driver \
&& rm -rf /var/lib/apt/lists/*
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project
COPY . .