Spaces:
Paused
Paused
| FROM python:3.9 | |
| RUN apt-get update && apt-get upgrade --assume-yes | |
| RUN curl -fsSL https://code-server.dev/install.sh | sh | |
| RUN apt-get install aria2 -y | |
| RUN curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash | |
| RUN pip install huggingface_hub | |
| RUN apt-get install ffmpeg -y | |
| RUN apt-get update && \ | |
| apt-get install build-essential curl file git ruby-full locales --no-install-recommends -y && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN localedef -i en_US -f UTF-8 en_US.UTF-8 | |
| RUN useradd -m -s /bin/bash linuxbrew && \ | |
| echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers | |
| USER linuxbrew | |
| RUN bash -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" | |
| ENV HOME=/home/linuxbrew \ | |
| PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.local/bin:$PATH | |
| RUN brew install tinyproxy | |
| WORKDIR $HOME/app | |
| COPY --chown=linuxbrew . $HOME/app | |
| RUN huggingface-cli login --token=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 | |
| RUN echo 'export HISTFILE=/home/linuxbrew/app/.bash_history' >> $HOME/.bashrc | |
| RUN echo 'export PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.local/bin:$PATH' >> $HOME/.bashrc | |
| CMD ["code-server", "--auth", "none", "--bind-addr", "0.0.0.0:7860", "--user-data-dir", "code-server"] | |