Spaces:
Paused
Paused
Download Dockerfile from git95/vscode: direct link, hf CLI and curl.
- Browser
- Download file 2.13 kB
-
https://huggingface.co/spaces/git95/vscode/resolve/refs%2Fpr%2F1/Dockerfile
- Command line
-
hf download hf://spaces/git95/vscode@refs/pr/1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/git95/vscode/resolve/refs%2Fpr%2F1/Dockerfile
2.13 kB
| FROM ubuntu:22.04 | |
| # রুট ইউজার হিসেবে প্যাকেজ ইন্সটল করা | |
| USER root | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # ১. প্রয়োজনীয় বেসিক টুলস এবং কম্পাইলার (build-essential) ইনস্টল | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| git \ | |
| sudo \ | |
| wget \ | |
| gnupg \ | |
| build-essential \ | |
| bash-completion \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ২. Python, PIP এবং Full Python Dev Packages ইনস্টল করা | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| python3-venv \ | |
| python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ৩. Node.js (JavaScript Runtime) এবং NPM ইনস্টল করা | |
| RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ | |
| && apt-get install -y nodejs \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ৪. code-server (VS Code) অফিশিয়াল স্ক্রিপ্ট দিয়ে ইনস্টল | |
| RUN curl -fsSL https://code-server.dev/install.sh | sh | |
| # ৫. Hugging Face-এর জন্য ইউজার এনভায়রনমেন্ট সেটআপ | |
| RUN useradd -m -u 1000 user && echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
| # ডিফল্ট শেল হিসেবে BASH সেট করা (যাতে Up-Arrow এবং Tab কাজ করে) | |
| ENV SHELL=/bin/bash | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME | |
| # ৬. টার্মিনালে কালারফুল Bash, অটো-কমপ্লিশন এবং Python/PIP-এর শর্টকাট (Alias) সেট করা | |
| RUN echo "source /etc/profile.sh" >> ~/.bashrc && \ | |
| echo "source /usr/share/bash-completion/bash_completion" >> ~/.bashrc && \ | |
| echo "alias python='python3'" >> ~/.bashrc && \ | |
| echo "alias pip='pip3'" >> ~/.bashrc && \ | |
| echo "alias py='python3'" >> ~/.bashrc | |
| # ৭. VS Code রান করার ফাইনাল কমান্ড | |
| CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "."] |