Number_Guessing_Game / Dockerfile
Manu11Pro's picture
Update Dockerfile
f886339 verified
Raw
History Blame Contribute Delete
290 Bytes
FROM python:3.11-slim
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
RUN pip install --no-cache-dir fastapi uvicorn
COPY --chown=user Number_Guessing_Game.py .
CMD ["uvicorn", "Number_Guessing_Game:app", "--host", "0.0.0.0", "--port", "7860"]