Martí Umbert
commited on
Commit
·
a1e0367
1
Parent(s):
13ad831
Dockerfile: add user
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -71,4 +71,10 @@ ENV GRADIO_SERVER_PORT=7860
|
|
| 71 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 72 |
EXPOSE 7860
|
| 73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
CMD ["python", "app.py"]
|
|
|
|
| 71 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 72 |
EXPOSE 7860
|
| 73 |
|
| 74 |
+
# Set up a new user named "user" with user ID 1000
|
| 75 |
+
RUN useradd -m -u 1000 user
|
| 76 |
+
|
| 77 |
+
# Switch to the "user" user
|
| 78 |
+
USER user
|
| 79 |
+
|
| 80 |
CMD ["python", "app.py"]
|