Spaces:
Runtime error
Runtime error
Commit
•
9b28542
1
Parent(s):
63b41cf
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -16,6 +16,10 @@ RUN apt-get update && apt-get install libgl1 -y
|
|
16 |
RUN pip install -U nltk
|
17 |
RUN [ "python3", "-c", "import nltk; nltk.download('punkt')" ]
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
|
21 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
16 |
RUN pip install -U nltk
|
17 |
RUN [ "python3", "-c", "import nltk; nltk.download('punkt')" ]
|
18 |
|
19 |
+
RUN useradd -m -u 1000 user
|
20 |
+
USER user
|
21 |
+
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
|
22 |
+
WORKDIR $HOME/app
|
23 |
+
COPY --chown=user . $HOME/app
|
24 |
|
25 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|