Spaces:
Paused
Paused
Update Dockerfile
Browse files123456789101112345678910111213141516171819202122232425262728FROM debian:sidRUN apt updateRUN useradd -m -u 1000 userRUN apt install wget curl sudo git curl -yRUN git clone https://github.com/dylanaraps/neofetc... /opt/neofetch && \ ln -s /opt/neofetch/neofetch /usr/local/bin/neofetchRUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-runRUN curl -fsSL https://code-server.dev/install.sh | shENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATHCMD code-server --auth none --bind-addr 0.0.0.0:7860# Use a base image, e.g., a recent Ubuntu or Debian imageFROM ubuntu:22.04
# Install necessary packagesRUN apt-get update && apt-get install -y \ wget \ dpkg \ curl \ python3-pip \ && rm -rf /var/lib/apt/lists/*
# Download and install code-serverRUN wget https://github.com/coder/code-server/releases/download/v4.8.3/code-server_4.8.3_amd64.deb && \ dpkg -i code-server_4.8.3_amd64.deb && \ rm -f code-server_4.8.3_amd64.deb
# (Optional) Install Python packages or other dependencies for your development environment# RUN pip3 install toml
# Set the user for code-serverUSER coder
# Expose the default port for code-serverEXPOSE 8080
# Start code-server when the container runsCMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "none"] # Consider using a password for authentication in production: "--auth", "password", "--password", "your_secure_password"Dockerfile+28-11