From 98ea6d0a94df342d5de3908df33601db7d6b31c2 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 24 Mar 2019 14:51:29 +0100 Subject: committing untracked files --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') 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"] -- cgit 1.4.1