about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-20 13:36:03 +0200
committerEmile <hanemile@protonmail.com>2019-10-20 13:36:03 +0200
commit6f685cd048ec48d7cdcf8057adfdc76cfda6a57f (patch)
treec7c291c339dae69ac4e1d518a01bd27ba1f2a256
parentbfb4b508bddb96359d53c6f0e0b7139f2492f2be (diff)
Docker
-rw-r--r--Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..45c1829
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,18 @@
+FROM golang
+
+# Install libraries
+RUN go get \
+	github.com/gorilla/mux \
+	github.com/lib/pq
+
+# Create workdir
+RUN mkdir /workdir
+WORKDIR /workdir
+
+# Copy our sources
+COPY src /workdir/src
+COPY hosted /workdir/hosted
+# and build them
+RUN go build -o /workdir/manager src/*.go
+
+ENTRYPOINT [ "/workdir/manager" ]