about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-03-24 14:51:29 +0100
committerEmile <hanemile@protonmail.com>2019-03-24 14:51:29 +0100
commit98ea6d0a94df342d5de3908df33601db7d6b31c2 (patch)
treee149d5d6df57cfe9effb12e8f14ee2ecdd0bd3fe /Dockerfile
parentf8cb2a4d3a5fdb56aeeeeb087afa939762637149 (diff)
committing untracked files HEAD main
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..8b5e53b
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,19 @@
+FROM golang:latest
+
+# Copy the source files into the container
+COPY . . 
+COPY frontend/ frontend/
+COPY backend/ frontend/
+
+# Get dependencies
+RUN ["go", "get", "git.darknebu.la/GalaxySimulator/structs"]
+#RUN ["go", "get", "git.darknebu.la/GalaxySimulator/db-controller/frontend"]
+RUN ["go", "get", "git.darknebu.la/GalaxySimulator/db-controller/backend"]
+RUN ["go", "get", "github.com/gorilla/mux"]
+RUN ["go", "get", "github.com/lib/pq"]
+
+# build an executable
+RUN ["go", "build", "-o", "db-controller", "."]
+
+# Start the webserver
+ENTRYPOINT ["./db-controller"]