Team Ai
Apppublic

duogamer009/Code-Server

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
Dockerfile26 linesDownload Raw Back to root
1 2# Use an official Ubuntu runtime as a parent image3FROM ubuntu:latest4 5# Set the working directory to /app6WORKDIR /app7 8# Copy the current directory contents into the container at /app9COPY . /app10 11# Install required tools12RUN apt-get update -y && \13    apt-get install -y wget curl && \14    if [ ! -f cloudflared ]; then \15        wget -q -nc https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O cloudflared; \16        chmod +x cloudflared; \17    fi && \18    curl -fsSL https://code-server.dev/install.sh | sh19 20# Set environment variable for the port21ENV PORT=1000022 23# Start VSCode24CMD code-server --port $PORT --disable-telemetry --auth none & \25    sleep 10 && \26    ./cloudflared tunnel --url http://127.0.0.1:$PORT --metrics localhost:45678