BACHI / Dockerfile
harp-dev's picture
Pin Gradio 6.24.0 in the Dockerfile, the release sdk_version names
1993d5d verified
Raw History Blame Contribute Delete
490 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY packages.txt /app/packages.txt
RUN apt-get update && \
apt-get install -y --no-install-recommends git gcc libc6-dev && \
xargs apt-get install -y --no-install-recommends < /app/packages.txt && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir gradio==6.24.0
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY . /app
ENV PORT=7860
EXPOSE 7860
CMD ["python", "app.py"]