Minecraft_java_server / Dockerfile
THEZYZSTUDIO's picture
Update Dockerfile
0b92476 verified
raw
history blame
629 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libopenblas-dev \
pkg-config \
git \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
ENV HF_HUB_CACHE="/tmp/hf_cache"
WORKDIR /app
COPY --chown=user requirements.txt .
# إزالة CMAKE_ARGS تماماً لمنع الترجمة من الصفر وتفعيل النسخ الجاهزة
RUN pip install --no-cache-dir --prefer-binary -r requirements.txt
COPY --chown=user . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]