TransseeAPI / Dockerfile
42Cummer's picture
Upload 3 files
16fc776 verified
raw
history blame
596 Bytes
FROM python:3.10-slim
# Install basic dependencies
RUN apt-get update && apt-get install -y \
wget \
gnupg \
unzip \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
# Install Playwright browsers after Python packages are installed
ENV PLAYWRIGHT_BROWSERS_PATH=/tmp/playwright-browsers
RUN playwright install chromium
# Verify the installation
RUN playwright --version && ls -la /tmp/playwright-browsers/
COPY . .
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]