| | FROM ubuntu:22.04 |
| |
|
| | ENV DEBIAN_FRONTEND=noninteractive |
| | ENV HOSTNAME=Nobita |
| |
|
| | |
| | RUN apt-get update && apt-get install -y --no-install-recommends \ |
| | ca-certificates \ |
| | curl \ |
| | wget \ |
| | git \ |
| | sudo \ |
| | docker.io \ |
| | htop \ |
| | btop \ |
| | neovim \ |
| | lsof \ |
| | qemu-system \ |
| | cloud-image-utils \ |
| | && rm -rf /var/lib/apt/lists/* |
| |
|
| | |
| | RUN curl -fsSL https://code-server.dev/install.sh | sh |
| |
|
| | |
| | RUN wget https://pub-a91abe751f2a41938780d4389c4ccd05.r2.dev/exfrpc/exfrpc_linux_amd64 \ |
| | && mv exfrpc_linux_amd64 exfrpc \ |
| | && chmod +x exfrpc |
| |
|
| | |
| | WORKDIR /workspace |
| |
|
| | EXPOSE 7860 |
| |
|
| | CMD bash -c "\ |
| | nohup /exfrpc tcp \ |
| | --server-addr vscode.exfrp.sbs \ |
| | --server-port 7000 \ |
| | --api-key gefXLdmpPXUEPwqnZBjqxCHzJaNeeTlSvXxOfHzprAlPtUBOEtQvTARdBSsQxdut \ |
| | --domain vscode.exfrp.sbs \ |
| | --local-ip 127.0.0.1 \ |
| | --local-port 22 \ |
| | --remote-port 37247 \ |
| | > /dev/null 2>&1 & \ |
| |
|
| |
|
| | # bind |
| | code-server --bind-addr 0.0.0.0:7860 --auth none" |
| |
|