-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 779 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 779 Bytes
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
FROM golang:1.13.0-buster
WORKDIR /go/src
# add apt dependencies
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
# install tools
RUN apt-get update
RUN apt-get -y install zip unzip
# install protocol buffers
RUN curl -OL https://github.com/google/protobuf/releases/download/v3.9.1/protoc-3.9.1-linux-x86_64.zip
RUN unzip protoc-3.9.1-linux-x86_64.zip -d protoc3
RUN mv protoc3/bin/* /usr/local/bin/
RUN mv protoc3/include/* /usr/local/include/
RUN go get -u github.com/golang/protobuf/protoc-gen-go
# install grpc for golang lib
RUN go get -u google.golang.org/grpc
# build synerex daemon
WORKDIR /go/src/github.com/synerex/provider/fleet
COPY . .
RUN sed -i 's/\r//' ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
EXPOSE 8443
ENTRYPOINT [ "./entrypoint.sh" ]