Download Dockerfile from aseli/moontod: direct link, hf CLI and curl.
- Browser
- Download file 645 Bytes
-
https://huggingface.co/spaces/aseli/moontod/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/aseli/moontod/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/aseli/moontod/resolve/main/Dockerfile
645 Bytes
| FROM node:18 | |
| RUN apt-get update && apt-get install -y \ | |
| libnss3-dev \ | |
| ffmpeg \ | |
| git && \ | |
| apt-get upgrade -y && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN useradd -o -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \ | |
| --mount=type=secret,id=REPO_URL,mode=0444,required=true \ | |
| git clone https://$(cat /run/secrets/GH_TOKEN)@$(cat /run/secrets/REPO_URL) . # Menggunakan token untuk clone repository | |
| COPY --chown=user package*.json $HOME/app | |
| RUN npm i | |
| COPY --chown=user . $HOME/app | |
| EXPOSE 7860 | |
| CMD ["node", "index.js"] |