Spaces:
Paused
Paused
Commit
·
f0bbedd
1
Parent(s):
640521c
Update Dockerfile
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
@@ -1,9 +1,17 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
COPY . .
|
|
|
1 |
+
FROM python:3.9
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
+
RUN useradd -ms /bin/bash admin
|
8 |
+
|
9 |
+
RUN chown -R admin:admin /
|
10 |
+
|
11 |
+
RUN chmod 777 /
|
12 |
+
|
13 |
+
USER admin
|
14 |
+
|
15 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
16 |
|
17 |
COPY . .
|