Skip to content
This repository was archived by the owner on Aug 3, 2025. It is now read-only.

Commit 41b2256

Browse files
authored
Merge pull request #76 from acm-uiuc/dockerfile-patch
Improve caching on Dockerfile
2 parents 092661d + db9fdbf commit 41b2256

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ MAINTAINER ACM@UIUC
55
# Get git
66
RUN apk add --update git bash
77

8+
# Get dep
9+
RUN go get -u github.com/golang/dep/...
10+
11+
# Create folder for client key database
12+
RUN mkdir -p /var/groot-api-gateway/
13+
814
# Bundle app source
915
ADD . $GOPATH/src/github.com/acm-uiuc/groot-api-gateway
1016
WORKDIR $GOPATH/src/github.com/acm-uiuc/groot-api-gateway
1117

1218
# Download and install external dependencies
13-
RUN go get -u github.com/golang/dep/...
14-
15-
# Create folder for client key database
16-
RUN mkdir -p /var/groot-api-gateway/
19+
RUN dep ensure -vendor-only
1720

1821
# Build groot
19-
ADD build.sh $GOPATH/src/github.com/acm-uiuc/groot-api-gateway
20-
RUN dep ensure && ./build.sh
22+
RUN ./build.sh
2123

22-
CMD ["./build/groot-api-gateway"]
24+
CMD ["./build/groot-api-gateway"]

0 commit comments

Comments
 (0)