Skip to content
This repository was archived by the owner on Aug 3, 2025. It is now read-only.
Merged
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
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ MAINTAINER ACM@UIUC
# Get git
RUN apk add --update git bash

# Get dep
RUN go get -u github.com/golang/dep/...

# Create folder for client key database
RUN mkdir -p /var/groot-api-gateway/

# Bundle app source
ADD . $GOPATH/src/github.com/acm-uiuc/groot-api-gateway
WORKDIR $GOPATH/src/github.com/acm-uiuc/groot-api-gateway

# Download and install external dependencies
RUN go get -u github.com/golang/dep/...

# Create folder for client key database
RUN mkdir -p /var/groot-api-gateway/
RUN dep ensure -vendor-only

# Build groot
ADD build.sh $GOPATH/src/github.com/acm-uiuc/groot-api-gateway
RUN dep ensure && ./build.sh
RUN ./build.sh

CMD ["./build/groot-api-gateway"]
CMD ["./build/groot-api-gateway"]