|
|
|
|
|
FROM ubuntu:22.04 |
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED 1 |
|
|
|
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
|
|
|
RUN apt update && apt upgrade -y |
|
|
|
|
|
|
|
|
RUN apt install -y curl |
|
|
|
|
|
|
|
|
RUN apt-get install -y curl neofetch ffmpeg \ |
|
|
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 imagemagick \ |
|
|
python3 python3-pip python3-venv build-essential libvips libvips-dev libjpeg-dev libpng-dev |
|
|
|
|
|
RUN pip install gradio_client |
|
|
|
|
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - |
|
|
|
|
|
|
|
|
RUN curl -fsSL https://code-server.dev/install.sh | sh |
|
|
|
|
|
|
|
|
RUN apt install -y nodejs |
|
|
|
|
|
|
|
|
RUN apt install -y neofetch |
|
|
|
|
|
|
|
|
RUN apt install -y ffmpeg gnupg ca-certificates build-essential software-properties-common chromium-browser |
|
|
|
|
|
|
|
|
RUN apt --yes install git libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 |
|
|
|
|
|
|
|
|
RUN apt install -y imagemagick |
|
|
|
|
|
|
|
|
RUN useradd -m -u 1000 Nex |
|
|
USER Nex |
|
|
|
|
|
|
|
|
ENV HOME=/home/Nex \ |
|
|
PATH=/home/Nex/.local/bin:$PATH |
|
|
|
|
|
|
|
|
WORKDIR $HOME/app |
|
|
|
|
|
|
|
|
COPY --chown=Nex package*.json . |
|
|
RUN npm install |
|
|
|
|
|
|
|
|
COPY --chown=Nex . . |
|
|
|
|
|
|
|
|
CMD ["code-server", ".", "--bind-addr", "0.0.0.0:7860", "--auth", "none"] |