xTHExBEASTx commited on
Commit
d79827e
·
verified ·
1 Parent(s): 8f1d2c5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 1. Base OS
2
+ FROM ubuntu:22.04
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ # 2. Install basic tools
6
+ RUN apt-get update && apt-get install -y \
7
+ curl \
8
+ git \
9
+ wget \
10
+ nano \
11
+ python3 \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # 3. Install VS Code server (Visual File Manager + Terminal)
15
+ RUN curl -fsSL https://code-server.dev/install.sh | sh
16
+
17
+ # 4. Create the required Hugging Face user (UID 1000)
18
+ RUN useradd -m -u 1000 user
19
+ USER user
20
+ ENV HOME=/home/user
21
+ WORKDIR $HOME/workspace
22
+
23
+ # 5. Start the server on the correct port (7860) with no password required
24
+ CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "--disable-telemetry"]