pkiage commited on
Commit
b3213a9
1 Parent(s): 5d16353

fix: docker permissions

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -10
Dockerfile CHANGED
@@ -5,6 +5,16 @@ FROM python:3.9
5
 
6
  RUN apt update
7
 
 
 
 
 
 
 
 
 
 
 
8
  # Set up a new user named "user" with user ID 1000
9
  RUN useradd -m -u 1000 user
10
 
@@ -21,14 +31,6 @@ WORKDIR $HOME/app
21
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
22
  COPY --chown=user . $HOME/app
23
 
24
- RUN sudo apt install -y graphviz
25
-
26
- # WORKDIR /code
27
-
28
- COPY ./requirements.txt $HOME/app/requirements.txt
29
-
30
- RUN pip install --no-cache-dir --upgrade -r $HOME/app/requirements.txt
31
-
32
- COPY . .
33
-
34
  CMD ["streamlit", "run", "app.py", "--server.address", "0.0.0.0"]
 
 
 
5
 
6
  RUN apt update
7
 
8
+ RUN apt install -y graphviz
9
+
10
+ WORKDIR /code
11
+
12
+ COPY ./requirements.txt /code/requirements.txt
13
+
14
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
+
16
+ COPY . .
17
+
18
  # Set up a new user named "user" with user ID 1000
19
  RUN useradd -m -u 1000 user
20
 
 
31
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
32
  COPY --chown=user . $HOME/app
33
 
 
 
 
 
 
 
 
 
 
 
34
  CMD ["streamlit", "run", "app.py", "--server.address", "0.0.0.0"]
35
+
36
+ # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]