about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorhanemile <hanemile@protonmail.com>2018-12-11 23:24:55 +0100
committerhanemile <hanemile@protonmail.com>2018-12-11 23:24:55 +0100
commitb00efde2f0b8994b42879518d671627f1b1601c9 (patch)
tree2ea9c970f9462a38776768be6cfbb61098a3e876 /Dockerfile
parent3b84190e10e83d6b782390d2aa3fd91eb92c6c54 (diff)
Corresponding Dockerfile running the service.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..54ad0ee
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,13 @@
+FROM golang:latest
+
+# Setup the work directory
+WORKDIR /home
+
+# Copy the files to the WORKDIR
+COPY main.go /home/main.go
+
+# Install go packages
+RUN ["go", "get", "github.com/gorilla/mux"]
+
+# Start the webserver
+ENTRYPOINT ["go", "run", "/home/main.go"]
\ No newline at end of file