KDP-FACTORY / Dockerfile
Yogesh
Configure Space: migrate to Docker-based static serving via Nginx
d2e704e
raw
history blame contribute delete
234 Bytes
FROM nginx:alpine
COPY . /usr/share/nginx/html
# Hugging Face Spaces require containers to listen on port 7860
RUN sed -i 's/listen\(.*\)80;/listen 7860;/' /etc/nginx/conf.d/default.conf
EXPOSE 7860
CMD ["nginx", "-g", "daemon off;"]