dystomachina commited on
Commit
8803281
·
1 Parent(s): ce4bc73

fix: Docker deploy to HF

Browse files
Files changed (4) hide show
  1. Dockerfile +0 -1
  2. Makefile +1 -1
  3. docker-compose.test.yml +0 -1
  4. docker-compose.yml +0 -1
Dockerfile CHANGED
@@ -33,7 +33,6 @@ RUN pip install --no-cache-dir -r requirements.txt && \
33
 
34
  # Copy all necessary application code
35
  COPY src ./src
36
- COPY config ./config
37
 
38
  # Expose both ports (7860 for Hugging Face, 8050 for local)
39
  EXPOSE 7860 8050
 
33
 
34
  # Copy all necessary application code
35
  COPY src ./src
 
36
 
37
  # Expose both ports (7860 for Hugging Face, 8050 for local)
38
  EXPOSE 7860 8050
Makefile CHANGED
@@ -280,7 +280,7 @@ deploy-hf:
280
  @echo "Checking if Hugging Face Space remote exists..."
281
  @if ! git remote | grep -q "space"; then \
282
  echo "Adding Hugging Face Space remote..."; \
283
- git remote add space git@huggingface.co:mingdom/folio; \
284
  fi
285
  @echo "Ensuring Git LFS is tracking .pkl files..."
286
  @grep -q "*.pkl filter=lfs diff=lfs merge=lfs -text" .gitattributes || \
 
280
  @echo "Checking if Hugging Face Space remote exists..."
281
  @if ! git remote | grep -q "space"; then \
282
  echo "Adding Hugging Face Space remote..."; \
283
+ git remote add space git@hf.co:spaces/mingdom/folio; \
284
  fi
285
  @echo "Ensuring Git LFS is tracking .pkl files..."
286
  @grep -q "*.pkl filter=lfs diff=lfs merge=lfs -text" .gitattributes || \
docker-compose.test.yml CHANGED
@@ -15,6 +15,5 @@ services:
15
  volumes:
16
  - ./src:/app/src
17
  - ./tests:/app/tests
18
- - ./config:/app/config
19
  - ./.env:/app/.env
20
  command: pytest tests/ -v
 
15
  volumes:
16
  - ./src:/app/src
17
  - ./tests:/app/tests
 
18
  - ./.env:/app/.env
19
  command: pytest tests/ -v
docker-compose.yml CHANGED
@@ -11,7 +11,6 @@ services:
11
  - LOG_LEVEL=INFO
12
  - GEMINI_API_KEY=${GEMINI_API_KEY}
13
  volumes:
14
- - ./config:/app/config
15
  - ./data:/app/data
16
  - ./.env:/app/.env
17
  restart: unless-stopped
 
11
  - LOG_LEVEL=INFO
12
  - GEMINI_API_KEY=${GEMINI_API_KEY}
13
  volumes:
 
14
  - ./data:/app/data
15
  - ./.env:/app/.env
16
  restart: unless-stopped