Spaces:
Runtime error
Runtime error
Commit
·
3d638da
1
Parent(s):
84bdd0a
first commit
Browse files- Dockerfile +0 -7
Dockerfile
CHANGED
@@ -3,12 +3,6 @@
|
|
3 |
|
4 |
FROM python:3.9
|
5 |
|
6 |
-
# Set up a new user named "user" with user ID 1000
|
7 |
-
RUN useradd -m -u 1000 user
|
8 |
-
|
9 |
-
# Switch to the "user" user
|
10 |
-
USER user
|
11 |
-
|
12 |
|
13 |
WORKDIR /code
|
14 |
|
@@ -22,6 +16,5 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
22 |
|
23 |
RUN pip install fastapi uvicorn
|
24 |
|
25 |
-
COPY . .
|
26 |
|
27 |
CMD ["fastapi", "run", "main.py", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
3 |
|
4 |
FROM python:3.9
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
|
|
16 |
|
17 |
RUN pip install fastapi uvicorn
|
18 |
|
|
|
19 |
|
20 |
CMD ["fastapi", "run", "main.py", "--host", "0.0.0.0", "--port", "7860"]
|