diff --git a/backend/.dockerignore b/backend/.dockerignore new file mode 100644 index 0000000..10c0298 --- /dev/null +++ b/backend/.dockerignore @@ -0,0 +1,2 @@ +.editorconfig +README.md diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..8f2ca36 --- /dev/null +++ b/backend/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:1.11.0-alpine + +WORKDIR /go/src/github.com/orsa-scholis/orsum-inflandi-II/backend +COPY . . + +ENV CGO_ENABLED=0 + +RUN go install -v -i + +EXPOSE '4560' + +CMD 'backend' diff --git a/backend/README.md b/backend/README.md new file mode 100644 index 0000000..051b703 --- /dev/null +++ b/backend/README.md @@ -0,0 +1,17 @@ +# Backend + +## 4 in a row server + +### Docker setup + +Run: + +```bash +cd backend +docker build -t orsa-scholis/orsum-inflandi . +``` + +to build the backend docker image. + +Use something like `docker run -it --rm -p 4560:4560 -h orsum-inflandi-server --name orsum-inflandi orsa-scholis/orsum-inflandi` +to start the server.