Spaces:
a79520
/
Runtime error

File size: 679 Bytes
fed7bc4
5675a49
c3cc272
272957f
 
5675a49
 
c3cc272
5675a49
c3cc272
5675a49
272957f
c3cc272
 
 
5675a49
c3cc272
5675a49
c3cc272
fed7bc4
5675a49
c3cc272
5675a49
 
c3cc272
fed7bc4
 
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
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"]