Download Dockerfile from cruxx/code: direct link, hf CLI and curl.
- Browser
- Download file 898 Bytes
-
https://huggingface.co/spaces/cruxx/code/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cruxx/code/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cruxx/code/resolve/main/Dockerfile
898 Bytes
| FROM debian:10 | |
| ENV CHROME_BIN=/usr/bin/chromium | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV TZ=Asia/Jakarta | |
| ENV USERNAME=ripp | |
| ENV HOSTNAME=ochinpo | |
| ENV CURR_DIR=app | |
| ENV PORT=7860 | |
| RUN apt-get update | |
| RUN apt-get install -y \ | |
| software-properties-common \ | |
| bash | |
| RUN apt-get install -y \ | |
| git \ | |
| curl \ | |
| chromium \ | |
| unzip \ | |
| ffmpeg \ | |
| webp \ | |
| neofetch \ | |
| build-essential | |
| RUN rm -rf /var/lib/apt/lists/* | |
| RUN curl https://pkgx.sh | sh | |
| RUN curl -fsSL https://code-server.dev/install.sh | sh | |
| RUN pkgx install bun huggingface-cli | |
| RUN useradd -m -u 1000 $USERNAME | |
| #END OF ROOT USER# | |
| USER $USERNAME | |
| ENV HOME=/home/$USERNAME | |
| ENV PATH=/home/$USERNAME/.local/bin:$PATH | |
| ENV WORKDIR=$HOME/$CURR_DIR | |
| WORKDIR $WORKDIR | |
| COPY --chown=$USERNAME . $WORKDIR | |
| EXPOSE $PORT | |
| RUN chmod -R 777 $WORKDIR | |
| CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none"] |