himanshu-711 commited on
Commit
038c2be
·
verified ·
1 Parent(s): 23eba01

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ # Install dependencies and code-server
4
+ RUN apt-get update && apt-get install -y curl
5
+ RUN curl -fsSL https://code-server.dev/install.sh | sh
6
+
7
+ # Create a user (Hugging Face doesn't like running as root)
8
+ RUN useradd -m -u 1000 user
9
+ USER user
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
+
13
+ WORKDIR $HOME
14
+
15
+ # Start code-server on port 7860 (The port Hugging Face expects)
16
+ CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "."]