meta_hackathon / Dockerfile
afroimam's picture
Upload folder using huggingface_hub
1395b2e verified
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
COPY pyproject.toml requirements.txt README.md /app/
COPY src /app/src
COPY scripts /app/scripts
COPY openenv.yaml /app/openenv.yaml
COPY app.py /app/app.py
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]