Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup docker #15

Merged
merged 2 commits into from
Nov 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.