Spaces:
Sleeping
Sleeping
Jainam Jain
commited on
Commit
•
1a60dce
1
Parent(s):
7a6d472
updated req.txt
Browse files- Dockerfile +11 -2
Dockerfile
CHANGED
@@ -12,6 +12,15 @@ RUN pip install --upgrade pip
|
|
12 |
|
13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
14 |
|
15 |
-
|
16 |
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
14 |
|
15 |
+
RUN useradd -m -u 1000 user
|
16 |
|
17 |
+
USER user
|
18 |
+
|
19 |
+
ENV HOME=/home/user \
|
20 |
+
PATH=/home/user/.local/bin:$PATH
|
21 |
+
|
22 |
+
WORKDIR $HOME/app
|
23 |
+
|
24 |
+
COPY --chown=user . $HOME/app
|
25 |
+
|
26 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|