File size: 894 Bytes
4753995 09ff7ad 4753995 09ff7ad 4753995 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | # Use NVIDIA CUDA as base for GPU support
FROM ubuntu:22.04
# Avoid prompts during installation
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
python3 \
python3-pip \
wget \
docker.io \
sudo \
&& rm -rf /var/lib/apt/lists/*
# Install code-server (VS Code Web)
RUN curl -fsSL https://code-server.dev/install.sh | sh
# Install Hugging Face & ML libraries
RUN pip3 install --no-cache-dir \
transformers \
datasets \
evaluate \
accelerate \
torch \
torchvision \
torchaudio
# Set the working directory
WORKDIR /home/coder/project
# Expose the code-server port
EXPOSE 8080
# Start code-server without password for easy local access
# (Note: Add --auth password for security in production)
CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "none"] |