|
FROM ubuntu:focal |
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
RUN apt-get update && apt-get upgrade -y |
|
|
|
|
|
RUN apt-get install -y \ |
|
curl \ |
|
neofetch \ |
|
ffmpeg \ |
|
imagemagick \ |
|
git \ |
|
git-lfs \ |
|
nodejs \ |
|
npm \ |
|
software-properties-common \ |
|
python3 \ |
|
python3-pip \ |
|
python3-venv \ |
|
build-essential \ |
|
libvips \ |
|
libvips-dev \ |
|
libjpeg-dev \ |
|
libpng-dev \ |
|
chromium-browser \ |
|
libgbm-dev \ |
|
xvfb |
|
|
|
|
|
RUN pip install --no-cache-dir speedtest-cli |
|
|
|
|
|
RUN npm install -g n && n latest |
|
|
|
|
|
RUN npm install -g npm@latest |
|
|
|
|
|
RUN npm cache clean --force |
|
|
|
|
|
RUN rm -rf /root/.npm |
|
|
|
|
|
RUN mkdir -p /home/nex/app && cd /home/nex/app && npm init -y && npm install puppeteer |
|
|
|
|
|
RUN useradd -m -u 1000 nex |
|
|
|
|
|
RUN curl -fsSL https://code-server.dev/install.sh | sh |
|
|
|
|
|
RUN python3 -m venv /venv |
|
ENV PATH="/venv/bin:$PATH" |
|
|
|
|
|
USER nex |
|
|
|
|
|
ENV HOME=/home/nex \ |
|
PATH=/home/nex/.local/bin:$PATH |
|
|
|
|
|
WORKDIR $HOME |
|
|
|
|
|
COPY --chown=nex . $HOME/server |
|
|
|
|
|
CMD ["code-server", ".", "--bind-addr", "0.0.0.0:7860", "--auth", "none"] |