-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.alpine
31 lines (21 loc) · 1008 Bytes
/
Dockerfile.alpine
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
FROM golang:1.14.4-alpine3.12 as build
ENV GOPATH=/tmp/go
RUN apk --no-cache add libcurl rsync gcc g++ build-base bash git
RUN mkdir -p $GOPATH/src/github.com/openark/orchestrator
WORKDIR $GOPATH/src/github.com/openark/orchestrator
RUN git clone https://github.com/github/orchestrator.git .
RUN bash build.sh -b -P
RUN rsync -av $(find /tmp/orchestrator-release -type d -name orchestrator -maxdepth 2)/ /
RUN rsync -av $(find /tmp/orchestrator-release -type d -name orchestrator-client -maxdepth 2)/ /
RUN cp conf/orchestrator-sample-sqlite.conf.json /etc/orchestrator.conf.json
FROM alpine:3.8
ENV RAFT=true
RUN apk --no-cache add bash curl jq
EXPOSE 3000
COPY --from=build /usr/local/orchestrator /usr/local/orchestrator
COPY --from=build /usr/bin/orchestrator-client /usr/bin/orchestrator-client
COPY --from=build /etc/orchestrator.conf.json /etc/orchestrator.conf.json
COPY run/ /usr/local/orchestrator
WORKDIR /usr/local/orchestrator
ADD docker/entrypoint.sh /entrypoint.sh
CMD /entrypoint.sh