my-private-linux / Dockerfile
xTHExBEASTx's picture
Create Dockerfile
d79827e verified
raw
history blame contribute delete
648 Bytes
# 1. Base OS
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# 2. Install basic tools
RUN apt-get update && apt-get install -y \
curl \
git \
wget \
nano \
python3 \
&& rm -rf /var/lib/apt/lists/*
# 3. Install VS Code server (Visual File Manager + Terminal)
RUN curl -fsSL https://code-server.dev/install.sh | sh
# 4. Create the required Hugging Face user (UID 1000)
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user
WORKDIR $HOME/workspace
# 5. Start the server on the correct port (7860) with no password required
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "--disable-telemetry"]