about summary refs log tree commit diff
path: root/Dockerfile
blob: 8b5e53b38f45a9a44670839364f9f01a422afc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"]