Intern-Decision / Dockerfile
Spico's picture
Deploy English CPU demo with static assets and remove external thinking
c7be834 verified
Raw History Blame Contribute Delete
584 Bytes
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
DEVICE=cpu \
PIP_NO_CACHE_DIR=1 \
HF_HOME=/home/user/.cache/huggingface \
HF_HUB_DISABLE_TELEMETRY=1 \
DO_NOT_TRACK=1
RUN useradd --create-home --uid 1000 user
WORKDIR /app
RUN pip install --no-cache-dir torch==2.9.1 torchvision==0.24.1 --index-url https://download.pytorch.org/whl/cpu
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY --chown=user:user . /app
USER user
ENV HOME=/home/user
EXPOSE 7860
CMD ["bash", "start.sh"]