initial Dockerfile
This commit is contained in:
parent
9658689995
commit
521d718a92
1 changed files with 21 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM golang:latest
|
||||
MAINTAINER Barak Michener <me@barakmich.com>
|
||||
|
||||
# Set up workdir
|
||||
WORKDIR /go/src/github.com/google/cayley
|
||||
|
||||
# Restore vendored dependencies
|
||||
RUN go get github.com/tools/godep
|
||||
ADD Godeps /go/src/github.com/google/cayley/Godeps
|
||||
RUN godep restore
|
||||
|
||||
# Add and install cayley
|
||||
ADD . .
|
||||
RUN go install -v github.com/google/cayley
|
||||
|
||||
# Expose the port and volume for configuration and data persistence. If you're
|
||||
# using a backend like bolt, make sure the file is saved to this directory.
|
||||
VOLUME ["/data"]
|
||||
EXPOSE 64321
|
||||
|
||||
CMD ["cayley", "http", "-config", "/data/cayley.cfg", "-init"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue