Download Dockerfile from Xlnk/docker: direct link, hf CLI and curl.
- Browser
- Download file 547 Bytes
-
https://huggingface.co/spaces/Xlnk/docker/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Xlnk/docker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Xlnk/docker/resolve/main/Dockerfile
547 Bytes
| FROM golang:1.16 | |
| COPY . /go/src/github.com/play-with-docker/play-with-docker | |
| WORKDIR /go/src/github.com/play-with-docker/play-with-docker | |
| RUN ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null | |
| RUN CGO_ENABLED=0 go build -a -installsuffix nocgo -o /go/bin/play-with-docker . | |
| FROM alpine | |
| RUN apk --update add ca-certificates | |
| RUN mkdir -p /app/pwd | |
| COPY --from=0 /go/bin/play-with-docker /app/play-with-docker | |
| COPY --from=0 /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_rsa_key | |
| WORKDIR /app | |
| CMD ["./play-with-docker"] | |
| EXPOSE 3000 | |