MiniCoder-1-Inference / Dockerfile
Bc-AI's picture
Update Dockerfile
a8a7b99 verified
Raw
History Blame Contribute Delete
457 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PYTORCH_ENABLE_MPS_FALLBACK=1
WORKDIR /home/user/app
COPY --chown=user app.py .
COPY --chown=user index.html .
EXPOSE 7860
CMD ["python", "app.py"]