FROM codercom/code-server:latest USER root RUN apt-get update && apt-get install -y \ python3 python3-pip git wget curl \ && rm -rf /var/lib/apt/lists/* RUN pip3 install --no-cache-dir --break-system-packages \ numpy pandas matplotlib scikit-learn # VS Code CLI từ GitHub Releases RUN curl -fsSL "https://update.code.visualstudio.com/latest/cli-linux-x64/stable" \ -o /tmp/vscode-cli.tar.gz && \ tar -xf /tmp/vscode-cli.tar.gz -C /usr/local/bin && \ rm /tmp/vscode-cli.tar.gz && \ code --version RUN mkdir -p /workspace COPY start.sh /start.sh RUN chmod +x /start.sh WORKDIR /workspace EXPOSE 7860 ENTRYPOINT [] CMD ["/bin/bash", "/start.sh"]