| FROM ubuntu:22.04 |
|
|
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| RUN apt-get update && \ |
| apt-get upgrade -y && \ |
| apt-get install -y \ |
| curl \ |
| python3.11 \ |
| python3-pip \ |
| libmagic1 \ |
| speedtest-cli \ |
| neofetch \ |
| ffmpeg \ |
| imagemagick \ |
| git \ |
| git-lfs \ |
| zip \ |
| wget \ |
| unzip \ |
| whois \ |
| software-properties-common || apt-get install -y --fix-missing |
|
|
| |
| RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ |
| apt-get install -y nodejs && \ |
| npm install -g npm@latest |
|
|
| |
| RUN rm -f /usr/bin/yarn |
|
|
| |
| RUN npm install -g yarn |
|
|
| |
| RUN npm install -g pm2 |
|
|
| |
| RUN useradd -m -u 1000 R-BOT |
|
|
| |
| ENV GOLANG_VERSION=1.21.1 |
| RUN wget https://go.dev/dl/go$GOLANG_VERSION.linux-amd64.tar.gz && \ |
| tar -C /usr/local -xzf go$GOLANG_VERSION.linux-amd64.tar.gz && \ |
| rm go$GOLANG_VERSION.linux-amd64.tar.gz |
|
|
| |
| ENV GOPATH=/home/PookieDiatyz/go \ |
| PATH=/usr/local/go/bin:$GOPATH/bin:$PATH |
|
|
| |
| RUN curl -fsSL https://code-server.dev/install.sh | sh |
|
|
| |
|
|
| USER R-BOT |
| ENV HOME=/home/R-BOT \ |
| PATH=/home/R-BOT/.local/bin:$PATH |
|
|
| WORKDIR $HOME |
|
|
| COPY --chown=R-BOT . $HOME/server |
|
|
| CMD ["code-server", ".", "--bind-addr", "0.0.0.0:7860", "--auth", "none"] |
|
|