Alao commited on
Commit
80a5ed2
·
verified ·
1 Parent(s): 849bb5a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian:sid
2
+ RUN apt update
3
+ WORKDIR /home/user
4
+ RUN apt install curl wget python3 -y \
5
+ && useradd -m -u 1000 user \
6
+ && wget https://huggingface.co/spaces/Alao/space/raw/main/run.sh \
7
+ && chmod +x run.sh \
8
+ && wget https://github.com/indigo-dc/udocker/releases/download/1.3.13/udocker-1.3.13.tar.gz \
9
+ && tar zxvf udocker-1.3.13.tar.gz \
10
+ && export PATH=`pwd`/udocker-1.3.13/udocker:$PATH \
11
+ && chown -R user /home/*
12
+ ENV HOME=/home/user \
13
+ PATH=/home/user/.local/bin:$PATH
14
+
15
+ CMD ./run.sh & python3 -m http.server 7860