aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorFarzad Sadeghi <thabogre@gmail.com>2021-12-14 17:25:09 +0000
committerGitHub <noreply@github.com>2021-12-14 17:25:09 +0000
commit5290f1f5ef81e776ca59f08e7fbf58c02e647288 (patch)
treef07b88aab5f13975e327376f1e9e16f59cdf6144 /Dockerfile
parentadded a codacy badge (diff)
parentfixed the ip and address for the grpc server (diff)
downloadhived-5290f1f5ef81e776ca59f08e7fbf58c02e647288.tar.gz
hived-5290f1f5ef81e776ca59f08e7fbf58c02e647288.zip
Merge pull request #4 from terminaldweller/grpc
Grpc
Diffstat (limited to '')
-rw-r--r--hived/Dockerfile (renamed from Dockerfile)8
1 files changed, 7 insertions, 1 deletions
diff --git a/Dockerfile b/hived/Dockerfile
index f43cefe..da91fb7 100644
--- a/Dockerfile
+++ b/hived/Dockerfile
@@ -1,5 +1,4 @@
FROM alpine:3.13 as builder
-
RUN apk update && apk upgrade
RUN apk add go git
COPY go.* /hived/
@@ -7,7 +6,14 @@ RUN cd /hived && go mod download
COPY *.go /hived/
RUN cd /hived && go build
+FROM node:lts-alpine3.13 as certbuilder
+RUN apk add openssl
+WORKDIR /certs
+RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=localhost" -keyout server.key -out server.cert
+
+# FROM gcr.io/distroless/static-debian10
FROM alpine:3.13
+COPY --from=certbuilder /certs /certs
COPY --from=builder /hived/hived /hived/
COPY ./docker-entrypoint.sh /hived/
ENTRYPOINT ["/hived/docker-entrypoint.sh"]