Skip to content

Commit

Permalink
Merge pull request #15 from orsa-scholis/feature/docker
Browse files Browse the repository at this point in the history
Setup docker
  • Loading branch information
TheFehr authored Nov 21, 2018
2 parents 4ca86b0 + 1b1898e commit f9a8087
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.editorconfig
README.md
12 changes: 12 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -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'
17 changes: 17 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit f9a8087

Please sign in to comment.