Spaces:
Sleeping
Sleeping
shakhovak
commited on
Commit
•
7fa1bbd
1
Parent(s):
e36eb69
added users
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -5,7 +5,10 @@ WORKDIR /app
|
|
5 |
COPY ./requirements.txt /app/requirements.txt
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
10 |
|
11 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "web_interface:app"]
|
|
|
5 |
COPY ./requirements.txt /app/requirements.txt
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
8 |
+
RUN useradd -m -u 1000 user
|
9 |
+
USER user
|
10 |
+
ENV HOME=/home/user \
|
11 |
+
PATH=/home/user/.local/bin:$PATH
|
12 |
+
COPY --chown=user . /app
|
13 |
|
14 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "web_interface:app"]
|