Mimi commited on
Commit
76149ec
·
1 Parent(s): 6343aa6

living on the edge hehe

Browse files
Files changed (2) hide show
  1. .gitignore +2 -1
  2. Dockerfile +7 -7
.gitignore CHANGED
@@ -131,4 +131,5 @@ dmypy.json
131
 
132
  .vscode/
133
  model_hugger.py
134
- demo.ipynb
 
 
131
 
132
  .vscode/
133
  model_hugger.py
134
+ demo.ipynb
135
+ .env
Dockerfile CHANGED
@@ -2,16 +2,16 @@ FROM python:3.12
2
 
3
  # Add user
4
  RUN useradd -m -u 1000 user
5
- WORKDIR /app
6
-
7
- COPY --chown=user . /app
8
- # Install system dependencies and requirements
9
- RUN pip install --no-cache-dir -r /app/requirements.txt && \
10
- huggingface-cli login --token $HF_TOKEN
11
-
12
  USER user
13
  ENV HOME=/home/user \
14
  PATH=/home/user/.local/bin:$PATH
 
 
 
 
 
 
 
15
 
16
  EXPOSE 7860
17
  CMD streamlit run app.py \
 
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
+ WORKDIR $HOME/app
9
+
10
+ COPY --chown=user . $HOME/app
11
+ # Install system dependencies and requirements
12
+ RUN pip install --no-cache-dir --upgrade pip && \
13
+ pip install --no-cache-dir -r /app/requirements.txt && \
14
+ huggingface-cli login --token $HF_TOKEN
15
 
16
  EXPOSE 7860
17
  CMD streamlit run app.py \