about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authormaride <maride@darknebu.la>2018-08-22 20:38:57 +0200
committermaride <maride@darknebu.la>2018-08-22 20:38:57 +0200
commit0a40e8487cb9e1ce4c21fbd6ba84ea5044a0db45 (patch)
tree4074f28479e0398de932ec50d1bff90b9a2b9fa9 /Dockerfile
parentff1b1fba7a49011088a05c65309f14b5e7b8892e (diff)
Generate config file and host it on a local port
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index c9532aa..2330bd5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine:3.8
+FROM golang:alpine
 
 # Set up workdir
 RUN mkdir -p /prod/persist
@@ -16,6 +16,10 @@ RUN chmod +x /prod/chainloader.sh
 COPY server.conf /prod/server.conf
 COPY client.conf /prod/client.conf
 
+# Copy client config host code and compile it
+COPY host.go /tmp/host.go
+RUN go build -o /prod/confhost /tmp/host.go
+
 # Create jail user
 # (We're dropping it to this user in the chainloader script)
 RUN adduser -u 1337 -D jail