windproject / Dockerfile
Johannesj00's picture
new main
fe10c68
Raw
History Blame Contribute Delete
647 Bytes
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"]