Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM nvcr.io/nvidia/pytorch:21.08-py3

LABEL version="1.0"
LABEL description="Real-Time-Voice-Cloning DevEnvironment"

# Ensure this docker file is built by VScode.
# Manual / user build of this Dockerfile is NOT supported.
ARG vscode
RUN if [[ -z "$vscode" ]] ; then printf "\nERROR: This Dockerfile NEEDS to be built with VScode !" && exit 1; else printf "VScode is detected: $vscode"; fi

RUN apt-get update \
# Install git and curl
&& apt-get install -y git \
&& apt-get install -y curl

# Install ZSH & OhMyZsh for development inside container
RUN apt-get install -y zsh \
&& sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"


RUN apt-get install -y libportaudio2

# not necessary
#RUN git clone https://github.com/CorentinJ/Real-Time-Voice-Cloning.git
27 changes: 27 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Real-Time-Voice-Cloning DevEnvironment",
"build": {
"dockerfile": "Dockerfile",
"args": {
"vscode": "true"
}
},
// expose default ports on host
"appPort": [3000, 3333, 8080],
"settings": {
// set VScode color theme to show that it"s a container
"workbench.colorTheme": "Cobalt2",
// use zsh as default terminal
"terminal.integrated.shell.linux": "/bin/zsh"
},
// VScode extensions
"extensions": [
"wesbos.theme-cobalt2",
"editorconfig.editorconfig"
],
"containerEnv": {
},
// run git status to build git index, install dependencies
"postCreateCommand": "cd /workspace/Real-Time-Voice-Cloning && pip install -r requirements.txt && zsh"
}