Mimi commited on
Commit
7b5a1e8
·
1 Parent(s): 57e90ca
Files changed (1) hide show
  1. Dockerfile +2 -7
Dockerfile CHANGED
@@ -1,21 +1,16 @@
1
  FROM python:latest
2
 
3
- RUN apt-get update && \
4
- xargs -r -a /app/packages.txt apt-get install -y && \
5
- rm -rf /var/lib/apt/lists/*
6
-
7
  # Add user
8
  RUN useradd -m -u 1000 user
9
  USER user
10
  ENV HOME=/home/user \
11
  PATH=/home/user/.local/bin:$PATH
12
-
13
  # Set default to user's home directory
14
  WORKDIR $HOME/app
15
- # Copy current files to space
16
- COPY --chown=user . $HOME/app
17
  # Install system dependencies and requirements
18
  RUN pip install --no-cache-dir -r $HOME/app/requirements.txt
 
 
19
 
20
  EXPOSE 7860
21
  CMD streamlit run app.py \
 
1
  FROM python:latest
2
 
 
 
 
 
3
  # Add user
4
  RUN useradd -m -u 1000 user
5
  USER user
6
  ENV HOME=/home/user \
7
  PATH=/home/user/.local/bin:$PATH
 
8
  # Set default to user's home directory
9
  WORKDIR $HOME/app
 
 
10
  # Install system dependencies and requirements
11
  RUN pip install --no-cache-dir -r $HOME/app/requirements.txt
12
+ # Copy current files to space
13
+ COPY --chown=user . $HOME/app
14
 
15
  EXPOSE 7860
16
  CMD streamlit run app.py \