Download Dockerfile from NIKHTU03/sub2api: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/spaces/NIKHTU03/sub2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NIKHTU03/sub2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NIKHTU03/sub2api/resolve/main/Dockerfile
624 Bytes
| FROM alpine:3.20 | |
| USER root | |
| RUN apk add --no-cache ca-certificates tzdata redis su-exec | |
| RUN addgroup -g 1000 app && adduser -u 1000 -G app -s /bin/sh -D app | |
| WORKDIR /tmp/payload | |
| COPY bundle.tar.gz /tmp/payload/bundle.tar.gz | |
| RUN tar -xzf /tmp/payload/bundle.tar.gz && mkdir -p /app/data && cp /tmp/payload/runtime/server /app/server && cp /tmp/payload/runtime/boot.sh /app/boot.sh && chmod +x /app/server /app/boot.sh | |
| COPY start.sh /app/start.sh | |
| RUN chmod +x /app/start.sh && chown -R app:app /app && rm -rf /tmp/payload | |
| WORKDIR /app | |
| EXPOSE 8080 | |
| ENTRYPOINT ["/app/start.sh"] | |