browser / Dockerfile
abc1181's picture
Update Dockerfile
e6f7650 verified
raw
history blame contribute delete
647 Bytes
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update && apt-get install -y \
curl wget git build-essential \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir \
flask flask-cors \
jupyter_kernel_gateway \
ipykernel \
jupyter_client \
nbformat \
playwright \
pandas numpy matplotlib seaborn scipy \
requests beautifulsoup4 pillow \
openpyxl PyPDF2 python-docx \
plotly fpdf2 reportlab \
kaleido
RUN python -m ipykernel install --user
RUN playwright install chromium
RUN playwright install-deps chromium
COPY . .
EXPOSE 7860
CMD ["python3", "-u", "app.py"]