ruslanmv commited on
Commit
839d00b
1 Parent(s): 3672976
Files changed (2) hide show
  1. .github/workflows/main.yml +1 -1
  2. Dockerfile +7 -5
.github/workflows/main.yml CHANGED
@@ -16,4 +16,4 @@ jobs:
16
  - name: Push to hub
17
  env:
18
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
- run: git push https://HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/ruslanmv/ollama-webui main
 
16
  - name: Push to hub
17
  env:
18
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: git push https://ruslanmv:$HF_TOKEN@huggingface.co/spaces/ruslanmv/ollama-webui main
Dockerfile CHANGED
@@ -7,11 +7,13 @@ COPY requirements.txt requirements.txt
7
  RUN python -m venv venv
8
  ENV PATH="/app/venv/bin:$PATH"
9
 
10
- RUN apt-get update && \
11
- apt-get install -y --no-install-recommends build-essential libffi-dev cmake libcurl4-openssl-dev && \
12
- pip3 install --no-cache-dir -r requirements.txt && \
13
- curl -fsSL https://ollama.com/install.sh | sh
14
-
 
 
15
  COPY . .
16
 
17
  RUN chmod -R 777 translations
 
7
  RUN python -m venv venv
8
  ENV PATH="/app/venv/bin:$PATH"
9
 
10
+ RUN apt-get update && \
11
+ apt-get clean && \
12
+ apt-get install -y --no-install-recommends build-essential libffi-dev cmake libcurl4-openssl-dev && \
13
+ python3 -m pip install --upgrade pip && \
14
+ pip3 install --no-cache-dir -r requirements.txt && \
15
+ curl -fsSL https://ollama.com/install.sh | sh
16
+
17
  COPY . .
18
 
19
  RUN chmod -R 777 translations