-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (15 loc) · 739 Bytes
/
Dockerfile
File metadata and controls
20 lines (15 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM golang:1.11-alpine3.8
RUN apk add --no-cache git libgit2 libgit2-dev build-base
RUN go get -u github.com/99designs/gqlgen github.com/vektah/gorunpkg
RUN go get -u gopkg.in/libgit2/git2go.v27
RUN go get -u github.com/gorilla/websocket github.com/rs/cors
RUN go get -u github.com/hashicorp/golang-lru
ADD . /go/src/github.com/franxois/ggql-git/
WORKDIR /go/src/github.com/franxois/ggql-git/
# Change libgit2 version in go source
RUN sed -i -E "s/git2go\.v[0-9]+/git2go\.v27/g" project/project.go
RUN sed -i -E "s/git2go\.v[0-9]+/git2go\.v27/g" project/project_test.go
WORKDIR /go/src/github.com/franxois/ggql-git/graphql/server
RUN gqlgen -v
RUN go build
ENTRYPOINT [ "/go/src/github.com/franxois/ggql-git/graphql/server/server" ]