apple muncy commited on
Commit
2576598
·
1 Parent(s): 519a652

add Dockerfile

Browse files

Signed-off-by: apple muncy <apple@dell-deb-12-5.local>

Files changed (2) hide show
  1. Dockerfile +14 -0
  2. README.md +2 -1
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ WORKDIR /app
8
+
9
+ COPY --chown=user ./requirements.txt requirements.txt
10
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
+
12
+ COPY --chown=user . /app
13
+
14
+ CMD ['python auto_server']
README.md CHANGED
@@ -4,9 +4,10 @@ emoji: 💻
4
  colorFrom: purple
5
  colorTo: pink
6
  sdk: docker
7
- pinned: false
8
  license: apache-2.0
9
  short_description: simple Auth Server
 
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
4
  colorFrom: purple
5
  colorTo: pink
6
  sdk: docker
7
+ pinned: true
8
  license: apache-2.0
9
  short_description: simple Auth Server
10
+ app_port: 9000
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference