Kangarroar commited on
Commit
54ad077
1 Parent(s): b50cd9e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -14
Dockerfile CHANGED
@@ -8,20 +8,8 @@ COPY ./packages.txt /app/packages.txt
8
  RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
9
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
10
 
11
- # Set up a new user named "user" with user ID 1000
12
- RUN useradd -m -u 1000 user
13
 
14
- # Switch to the "user" user
15
- USER user
16
-
17
- # Set home to the user's home directory
18
- ENV HOME=/home/user \
19
- PATH=/home/user/.local/bin:$PATH
20
-
21
- # Set the working directory to the user's home directory
22
- WORKDIR $HOME/app
23
-
24
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
25
- COPY --chown=user . $HOME/app
26
  EXPOSE 8501
27
  CMD streamlit run app.py --server.maxUploadSize 1024
 
8
  RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
9
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
10
 
11
+ RUN mkdir -p /data
12
+ RUN chmod 777 /data
13
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  EXPOSE 8501
15
  CMD streamlit run app.py --server.maxUploadSize 1024