ALYYAN commited on
Commit
93ae84f
·
verified ·
1 Parent(s): 7c9aca9

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +13 -0
  2. README.md +11 -11
  3. requirements.txt +2 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
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
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
README.md CHANGED
@@ -1,11 +1,11 @@
1
- ---
2
- title: Hello Docker Test
3
- emoji: ✅
4
- colorFrom: green
5
- colorTo: blue
6
- sdk: docker
7
- app_file: app_test.py
8
- pinned: false
9
- ---
10
-
11
- This is a test to confirm my deployment setup is working.
 
1
+ ---
2
+ title: Hello Docker Test
3
+ emoji: ✅
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: docker
7
+ app_file: app.py
8
+ pinned: false
9
+ ---
10
+
11
+ This is a test to confirm my deployment setup is work
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ fastapi
2
+ uvicorn