Sahand
commited on
Commit
·
3628430
1
Parent(s):
6a04b7a
added permission to change data
Browse files- Dockerfile +19 -2
Dockerfile
CHANGED
@@ -1,6 +1,23 @@
|
|
1 |
FROM python:3.9
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
COPY ./requirements/requirements-dev-vis.txt /requirements-dev-vis.txt
|
|
|
4 |
RUN pip install --no-cache-dir --upgrade -r /requirements-dev-vis.txt
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
CMD ["python", "app.py","--input","Data/{}","-s"]
|
|
|
|
1 |
FROM python:3.9
|
2 |
+
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
|
5 |
+
USER user
|
6 |
+
ENV HOME=/home/user/app \
|
7 |
+
PATH=/home/user/.local/bin:$PATH
|
8 |
+
|
9 |
+
WORKDIR $HOME/
|
10 |
+
|
11 |
COPY ./requirements/requirements-dev-vis.txt /requirements-dev-vis.txt
|
12 |
+
|
13 |
RUN pip install --no-cache-dir --upgrade -r /requirements-dev-vis.txt
|
14 |
+
|
15 |
+
COPY . /home/user/app
|
16 |
+
|
17 |
+
USER root
|
18 |
+
RUN chmod 777 -R /home/user/app
|
19 |
+
RUN chown -R user:user /home/user/app
|
20 |
+
USER user
|
21 |
+
|
22 |
CMD ["python", "app.py","--input","Data/{}","-s"]
|
23 |
+
# CMD ["/bin/bash"]
|