Download Dockerfile from goingyt/portainer: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/spaces/goingyt/portainer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/goingyt/portainer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/goingyt/portainer/resolve/main/Dockerfile
646 Bytes
| # Use Alpine as the base image | |
| FROM alpine:latest | |
| # Install necessary packages including Portainer | |
| RUN apk add --no-cache curl && \ | |
| curl -L https://github.com/portainer/portainer-ce/releases/latest/download/portainer-ce-linux-amd64 -o /usr/local/bin/portainer && \ | |
| chmod +x /usr/local/bin/portainer | |
| # Create the data directory and set permissions | |
| RUN mkdir -p /data && chown -R 1000:1000 /data | |
| # Copy the entry point script | |
| COPY start.sh /start.sh | |
| # Make the entry point script executable | |
| RUN chmod +x /start.sh | |
| # Expose the Portainer web interface port | |
| EXPOSE 9000 | |
| # Set the entrypoint to the custom script | |
| ENTRYPOINT ["/start.sh"] |