Skip to content

Commit

Permalink
ci: correct secret in build, exclude unused files in docker build and…
Browse files Browse the repository at this point in the history
… correct redis from zip install
  • Loading branch information
danellecline committed Aug 28, 2024
1 parent 243121a commit d39aa1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
*.png
*.jpb
*.env
docs/
tests/
environment.yml
Dockerfile*
*.md
bin/
src/submodules/
src/submodules
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
docker buildx build --push --platform linux/amd64 \
-t mbari/fastapi-vss:$RELEASE_VERSION \
--build-arg IMAGE_URI=mbari/fastapi-vss:$RELEASE_VERSION \
--build-arg GH_TOKEN=$GH_TOKEN \
--build-arg GH_TOKEN=${{ secrets.GH_TOKEN }} \
-f Dockerfile.cuda .
2 changes: 1 addition & 1 deletion Dockerfile.cuda
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN python3 -m pip install --upgrade pip && \
python3 -m pip install -r src/requirements.txt && \
python3 -m pip install -r src/submodules/aidata/requirements.txt && \
python3 -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121 && \
pip install -f https://github.com/redis/redis-py/archive/refs/tags/v5.0.9.zip
python3.11 -m pip install https://github.com/redis/redis-py/archive/refs/tags/v5.0.9.zip

# run the FastAPI server
WORKDIR $APP_HOME/src/app
Expand Down

0 comments on commit d39aa1d

Please sign in to comment.