mirror of
https://github.com/pstrueb/piper.git
synced 2026-04-20 07:14:48 +00:00
Add Docker scripts
This commit is contained in:
1
src/python/.dockerignore
Normal file
1
src/python/.dockerignore
Normal file
@@ -0,0 +1 @@
|
||||
*
|
||||
6
src/python/Dockerfile
Normal file
6
src/python/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM nvcr.io/nvidia/pytorch:22.03-py3
|
||||
|
||||
RUN pip3 install \
|
||||
'pytorch-lightning'
|
||||
|
||||
ENV NUMBA_CACHE_DIR=.numba_cache
|
||||
14
src/python/run-docker
Executable file
14
src/python/run-docker
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
nvidia-docker run \
|
||||
-it \
|
||||
-w "$PWD" \
|
||||
--user $(id -u):$(id -g) \
|
||||
--ipc=host \
|
||||
-v "${HOME}/opt:${HOME}/opt" \
|
||||
-v /media/data:/media/data:ro \
|
||||
-v /media/12tb:/media/12tb:ro \
|
||||
-v /media/cache:/media/cache:ro \
|
||||
-v /etc/hostname:/etc/hostname:ro \
|
||||
-v /etc/localtime:/etc/localtime:ro \
|
||||
larynx2-train \
|
||||
"$@"
|
||||
Reference in New Issue
Block a user