MarisUK's picture
GitHub Actions deploy 58536f00fab443e850da1235c8acd1c4f10ce306
f6c4b6b verified
Raw
History Blame Contribute Delete
784 Bytes
FROM python:3.11-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PYTHONPATH=/workspace
WORKDIR /workspace
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
COPY core-python/requirements.txt /workspace/core-python/requirements.txt
RUN python3 -m pip install -r /workspace/core-python/requirements.txt
COPY core-python /workspace/core-python
COPY huggingface_human_training_space /workspace/huggingface_human_training_space
RUN python3 -m pip install -e /workspace/core-python --no-deps
EXPOSE 7860
CMD ["python3", "-m", "uvicorn", "--app-dir", "/workspace", "huggingface_human_training_space.app:app", "--host", "0.0.0.0", "--port", "7860"]