Capstone / Dockerfile
Yabuku's picture
Clean up: Remove HuggingFace Spaces and other cloud platform files, keep only AWS deployment
d54d151
Raw History Blame Contribute Delete
372 Bytes
FROM python:3.9-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV HF_HUB_ENABLE_HF_TRANSFER=1
ENV PORT=7860
RUN mkdir -p /data
EXPOSE 7860
CMD ["gunicorn", "-c", "gunicorn_config.py", "server:app"]