aboutsummaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile42
1 files changed, 42 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..a87908e
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,42 @@
+FROM ubuntu:20.04
+
+# Set a term for terminal inside the container, can't clear without it
+ENV TERM screen-256color
+ENV DEBIAN_FRONTEND noninteractive
+
+
+# Update and install
+RUN apt-get update && apt-get install -y \
+ wget \
+ curl \
+ bridge-utils \
+ openvpn \
+ transmission-cli \
+ transmission-daemon \
+ locales
+
+# Generally a good idea to have these, extensions sometimes need them
+RUN locale-gen en_US.UTF-8
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
+
+# The code is stored here
+WORKDIR /usr/src/app
+
+# Copy code into image for distribution
+COPY . /usr/src/app
+
+# Install Nord
+RUN bash /usr/src/app/docker/install.sh
+
+# Norcvpnd complains about if this isn't present
+RUN mkdir /run/nordvpn
+
+# Convenience
+RUN echo 'alias tsm="transmission-remote"' >> /root/.bashrc
+RUN echo 'alias tsd="transmission-daemon"' >> /root/.bashrc
+RUN echo 'alias tsdk="pkill transmission"' >> /root/.bashrc
+RUN echo 'alias myip="curl ipinfo.io"' >> /root/.bashrc
+
+ENTRYPOINT ["nordvpnd"]