Skip to content

Commit

Permalink
Got Docker to work without torchvision reinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
slashtechno committed Mar 9, 2024
1 parent 771154c commit a4d11cd
Show file tree
Hide file tree
Showing 5 changed files with 232 additions and 72 deletions.
5 changes: 4 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Dockerfile
.venv
docker-compose.yml
docker-compose.yml
*.ipnyb
dist/
*.pkl
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY . .

RUN poetry install

RUN poetry run pip uninstall -y torchvision
RUN poetry run pip install torchvision
# RUN poetry run pip uninstall -y torchvision
# RUN poetry run pip install torchvision

ENTRYPOINT ["poetry", "run", "python", "-m", "--", "wyzely_detect", "--no-display"]
6 changes: 1 addition & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ services:
all:
wyzely-detect:
container_name: wyzely-detect
# restart: unless-stopped
restart: unless-stopped
# image: ghcr.io/slashtechno/wyzely-detect:latest
# Building from source is also an option
build:
Expand All @@ -60,10 +60,6 @@ services:
- ./faces:/app/faces
networks:
all:
environment:
- URL=rtsp://bridge:8554/cv
- NO_DISPLAY=true
- NTFY_URL=http://ntfy:80/wyzely-detect
depends_on:
- bridge

Expand Down
Loading

0 comments on commit a4d11cd

Please sign in to comment.