Introduction / Dockerfile
BinKhoaLe1812's picture
Upload 6 files
3a4efe4 verified
raw
history blame contribute delete
305 Bytes
# 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}"]