Skip to content

Commit d8b7b1a

Browse files
committed
feat: added HOME environment variable for copy download.sh file
1 parent 9d33431 commit d8b7b1a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/deploy-modal.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
echo "APP_NAME=${APP_NAME}" >> $GITHUB_ENV
5252
5353
- name: Deploy FastAPI app
54-
run: pwd;ls -la;modal deploy open.text.embeddings.server.modal
54+
run: HOME=$(pwd) modal deploy open.text.embeddings.server.modal
5555

5656
- name: Test FastAPI app
5757
run: >

Dockerfile-Modal

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ FROM debian:bullseye-slim AS build-image
22

33
#ARG MODEL
44
#ENV MODEL=${MODEL}
5-
RUN pwd;ls -la
6-
7-
COPY ./download.sh ./
5+
COPY ${HOME}/download.sh ./
86

97
# Install build dependencies
108
RUN apt-get update && \

open/text/embeddings/server/modal.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"MODEL": os.environ["MODEL"],
1111
"NORMALIZE_EMBEDDINGS": os.environ["NORMALIZE_EMBEDDINGS"],
1212
"VERBOSE": os.environ["VERBOSE"],
13+
"HOME": os.environ["HOME"],
1314
"HF_HOME": "/tmp/hf_home",
1415
})
1516

0 commit comments

Comments
 (0)