Spaces:
Running
Running
File size: 560 Bytes
d65a9ae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # nova-connect: the Nova web page + room-ticket service. Hugging Face Docker
# Space (port 7860) or any container host. Holds no models and no audio.
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PORT=7860
# HF Spaces run the container as uid 1000.
RUN useradd --create-home --uid 1000 app
WORKDIR /home/app/nova-connect
COPY --chown=app requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=app app.py token_service.py ./
COPY --chown=app static ./static
USER app
EXPOSE 7860
CMD ["python", "app.py"]
|