-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile
39 lines (23 loc) · 840 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# --------------------------------------------------
FROM golang:alpine AS pprotein
RUN apk add npm make
WORKDIR $GOPATH/src/app
COPY . .
RUN make build
# --------------------------------------------------
FROM golang:alpine AS alp
RUN go install github.com/tkuchiki/alp/cmd/alp@latest
# --------------------------------------------------
FROM golang:alpine AS slp
RUN apk add gcc musl-dev
RUN go install github.com/tkuchiki/slp/cmd/slp@latest
# --------------------------------------------------
FROM alpine
RUN apk add --no-cache graphviz
COPY --from=pprotein /go/src/app/pprotein /usr/local/bin/
COPY --from=pprotein /go/src/app/pprotein-agent /usr/local/bin/
COPY --from=alp /go/bin/alp /usr/local/bin/
COPY --from=slp /go/bin/slp /usr/local/bin/
RUN mkdir -p /opt/pprotein
WORKDIR /opt/pprotein
ENTRYPOINT ["pprotein"]