-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (18 loc) · 556 Bytes
/
Dockerfile
File metadata and controls
31 lines (18 loc) · 556 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
31
FROM golang:1.19
# Set destination for COPY
WORKDIR /
# Download Go modules
COPY ./api .
EXPOSE 8080
RUN go get .
RUN go build -o podlogger-api
ENV APISERVER=https://kubernetes.default.svc
# Path to ServiceAccount token
ENV SERVICEACCOUNT=/var/run/secrets/kubernetes.io/serviceaccount
ENV NAMESPACE=/var/run/secrets/kubernetes.io/serviceaccount/namespace
ENV TOKEN=/var/run/secrets/kubernetes.io/serviceaccount/token
ENV CACERT=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
# ENV PN logger
# ENV NS default
# Run
CMD ["./podlogger-api"]