Spaces:
Sleeping
Sleeping
Download Dockerfile from andreped/wsi-visualization-demo: direct link, hf CLI and curl.
- Browser
- Download file 439 Bytes
-
https://huggingface.co/spaces/andreped/wsi-visualization-demo/resolve/2140160a11e743f267cf1aba67e488927a9513b9/Dockerfile
- Command line
-
hf download hf://spaces/andreped/wsi-visualization-demo@2140160a11e743f267cf1aba67e488927a9513b9/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/andreped/wsi-visualization-demo/resolve/2140160a11e743f267cf1aba67e488927a9513b9/Dockerfile
439 Bytes
| FROM nginx:alpine | |
| # Install shadow package to get useradd command | |
| RUN apk add --no-cache shadow | |
| # Add a new user | |
| RUN useradd -m -u 1000 user | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the HTML and nginx configuration files | |
| COPY index.html /usr/share/nginx/html | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Start nginx as root but serve files as non-root user | |
| CMD ["sh", "-c", "nginx -g 'daemon off;'"] | |