diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000000..1815215b07 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,30 @@ +FROM python:3.7 + +# Better movement with [Ctrl + →] and [Ctrl + ←] +ENV INPUTRC=/etc/inputrc + +RUN set -ex \ + && echo '"\e[1;5C": forward-word' >> /etc/inputrc \ + && echo '"\e[1;5D": backward-word' >> /etc/inputrc + +# Set working directory. +# Mount your project under the same path. +WORKDIR /usr/src + +# Install useful programs +RUN apt-get update -y && apt-get install -y \ + less \ + git + +# Install DVC, supporting all remotes +RUN pip install "dvc[all]" + +# Enable autocompletion scripts for DVC +RUN wget \ + -O /etc/bash_completion.d/dvc \ + https://raw.githubusercontent.com/iterative/dvc/master/scripts/completion/dvc.bash + +# Add a user to run DVC +ARG USER_ID=1000 +RUN useradd --create-home -u ${USER_ID} dvc +USER dvc