JuliaGPT / Dockerfile
DavinciDreams
Switch to Python/FastAPI server (RandyGPT pattern)
492f84f
raw
history blame contribute delete
308 Bytes
FROM python:3.11-slim
RUN useradd -m -u 1000 user
WORKDIR /home/user/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user server.py .
USER user
ENV HOME=/home/user
EXPOSE 7860
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]