This repository was archived by the owner on Aug 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change
1
+
1
2
FROM golang:1.8-alpine
2
3
MAINTAINER ACM@UIUC
3
4
4
5
# Get git
5
6
RUN apk add --update git bash
6
7
7
- # Create app directory
8
- RUN mkdir -p /usr/src/app
9
- WORKDIR /usr/src/app
10
-
11
- # Download and install external dependencies
12
- RUN go get -u github.com/acm-uiuc/arbor/...
13
-
14
-
15
8
# Bundle app source
16
- ADD . /usr/src/app
17
-
18
- # Create symlink to GOPATH for groot
19
- RUN mkdir -p $GOPATH/src/github.com/acm-uiuc && \
20
- ln -sf /usr/src/app $GOPATH/src/github.com/acm-uiuc/groot-api-gateway
9
+ ADD . $GOPATH/src/github.com/acm-uiuc/groot-api-gateway
10
+ WORKDIR $GOPATH/src/github.com/acm-uiuc/groot-api-gateway
21
11
12
+ # Download and install external dependencies
13
+ RUN go get -u github.com/golang/dep/...
14
+
22
15
# Create folder for client key database
23
16
RUN mkdir -p /var/groot-api-gateway/
24
17
25
-
26
18
# Build groot
27
- ADD build.sh /usr/ src/app
28
- RUN ./build.sh
19
+ ADD build.sh $GOPATH/ src/github.com/acm-uiuc/groot-api-gateway
20
+ RUN dep ensure && ./build.sh
29
21
30
- CMD ["./build/groot-api-gateway" , "-u" ]
22
+ CMD ["./build/groot-api-gateway" ]
You can’t perform that action at this time.
0 commit comments