python-debugger-env / Dockerfile
moksh24's picture
Restructure to compliant multi-mode layout with server/ and uv.lock
e13f5d6
Raw
History Blame Contribute Delete
383 Bytes
FROM python:3.11-slim
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /code
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user . /code
# Hugging Face Spaces requirement
ENV PORT=7860
EXPOSE 7860
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]