QWEN / Dockerfile
THED2's picture
Update Dockerfile
8ef4dd5 verified
Raw
History Blame Contribute Delete
469 Bytes
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
curl \
git \
sudo \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://code-server.dev/install.sh | sh
RUN useradd -m -u 1000 user
RUN echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "."]