FlareS / Dockerfile
aanycmn's picture
Update Dockerfile
b663486 verified
raw
history blame contribute delete
880 Bytes
FROM python:3.11-slim
# Deps de sistema: Chrome + Xvfb
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
wget gnupg2 xvfb procps \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub \
| gpg --dearmor > /usr/share/keyrings/google-chrome.gpg \
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends google-chrome-stable \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# App
COPY app.py start.sh ./
RUN chmod +x start.sh
# HuggingFace Spaces exige porta 7860
ENV DISPLAY=:99
EXPOSE 7860
CMD ["./start.sh"]