-
Notifications
You must be signed in to change notification settings - Fork 32
/
Dockerfile
27 lines (19 loc) · 623 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
####################
## Build kubedock ## ----------------------------------------------------------
####################
FROM docker.io/golang:1.22 AS kubedock
ARG CODE=github.com/joyrex2001/kubedock
ADD . /go/src/${CODE}/
RUN cd /go/src/${CODE} \
&& make test build \
&& mkdir /app \
&& cp kubedock /app
#################
## Final image ## ------------------------------------------------------------
#################
FROM alpine:3
RUN apk add --no-cache ca-certificates \
&& update-ca-certificates
COPY --from=kubedock /app /usr/local/bin
ENTRYPOINT ["/usr/local/bin/kubedock"]
CMD [ "server" ]