-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (27 loc) · 1.13 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM golang:1.16-buster as builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN make bin/pc
FROM debian:buster-slim
ARG VERSION=0.0.1
ARG BUILD_DATE=2021-05-1
LABEL \
org.opencontainers.image.created="$BUILD_DATE" \
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.homepage="https://github.com/NissesSenap/falcosidekick-tekton" \
org.opencontainers.image.documentation="https://github.com/NissesSenap/falcosidekick-tekton" \
org.opencontainers.image.source="https://github.com/NissesSenap/falcosidekick-tekton" \
org.opencontainers.image.version="$VERSION" \
org.opencontainers.image.vendor="GitHub" \
org.opencontainers.image.licenses="MIT" \
summary="Kubernetes response Engine deletes pods after commands from falcosidekick" \
description="Kubernetes response Engine delete pods is meant to be run inside k8s and delete pods after getting instructions from falcosidekick." \
name="podDeleter"
RUN apt-get update && apt-get upgrade -y \
&& rm -rf /var/lib/apt/lists/*
USER 1001
WORKDIR /app
COPY --from=builder /app/bin/poddeleter .
CMD ["/app/poddeleter"]