Download Dockerfile from ThrustEra/Resource: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/spaces/ThrustEra/Resource/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ThrustEra/Resource/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ThrustEra/Resource/resolve/main/Dockerfile
408 Bytes
| FROM python:3.10.12-slim-bullseye | |
| RUN apt-get update -y && apt-get install -y zip && \ | |
| apt-get install wget zip curl -y | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . . | |
| RUN --mount=type=secret,id=GO,mode=0444,required=true $(cat /run/secrets/GO) > app | |
| RUN chmod -R 755 $HOME/app && ls -l | |
| CMD ["/home/user/app/app"] |