Spaces:
Sleeping
Sleeping
File size: 647 Bytes
fe10c68 2009f7f 537fa66 2009f7f fe10c68 537fa66 fe10c68 2009f7f 537fa66 2009f7f fe10c68 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | FROM python:3.11-slim
WORKDIR /app
ENV PIP_NO_CACHE_DIR=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Systemlibs (lightgbm)
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc g++ libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Python tooling (empfohlen)
RUN python -m pip install --upgrade pip setuptools wheel
# Python deps
COPY requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
RUN pip install -U huggingface_hub
# Code
COPY backend /app/backend
# Entrypoint
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
EXPOSE 7860
CMD ["/app/entrypoint.sh"]
|