Spaces:
Sleeping
Sleeping
File size: 305 Bytes
3a4efe4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# Simple static server using Python for Hugging Face Spaces (Docker SDK)
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PORT=7860
WORKDIR /app
COPY . /app
EXPOSE 7860
# Serve static files from /app at $PORT
CMD ["/bin/sh", "-lc", "python -m http.server ${PORT:-7860}"]
|