about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authormaride <maride@darknebu.la>2018-08-22 13:53:25 +0200
committermaride <maride@darknebu.la>2018-08-22 13:53:25 +0200
commitf8170053c19a9974d7a0f0e906c4832ee134d5c8 (patch)
tree94c8ac23816a99f89cff672040d7d3fe45d617ce /Dockerfile
Init: working setup
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..c9532aa
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,25 @@
+FROM alpine:3.8
+
+# Set up workdir
+RUN mkdir -p /prod/persist
+WORKDIR /prod
+
+# Install OpenVPN
+RUN apk update
+RUN apk add openvpn
+
+# Copy our chainloader script
+COPY chainloader.sh /prod/chainloader.sh
+RUN chmod +x /prod/chainloader.sh
+
+# Copy server and client config files
+COPY server.conf /prod/server.conf
+COPY client.conf /prod/client.conf
+
+# Create jail user
+# (We're dropping it to this user in the chainloader script)
+RUN adduser -u 1337 -D jail
+
+# Ready to rumble.
+CMD /prod/chainloader.sh
+