Add Dockerfile.nvidia

This commit is contained in:
Andras Fekete
2023-06-16 09:14:14 -04:00
parent 8f42e11e43
commit 47cc73313b
2 changed files with 26 additions and 0 deletions

6
docker/run.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
# Run this script from within the refacer/docker folder.
docker build -t refacer -f Dockerfile.nvidia . && \
docker run --rm -p 7860:7860 --gpus all refacer python3 app.py --server_name 0.0.0.0 && \
sleep 1 && google-chrome --new-window "http://127.0.0.1:7860" &