multibot / Dockerfile
gi2h270's picture
Update Dockerfile
261d1b1 verified
raw
history blame contribute delete
806 Bytes
FROM python:3.9-bullseye
RUN apt-get update && apt-get install -y \
curl \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& apt-get install -y \
libnss3 \
libatk-bridge2.0-0 \
libdrm2 \
libxkbcommon0 \
libgbm1 \
libasound2 \
xvfb \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir --upgrade pip && \
pip uninstall -y gradio huggingface_hub || true && \
pip install --no-cache-dir gradio==4.44.1 huggingface_hub==0.23.4
RUN npx playwright install-deps && \
npx playwright install chromium
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN python -c "import gradio; print('✅ Gradio', gradio.__version__)"
EXPOSE 7860
CMD ["python", "app.py"]