-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 loc) · 825 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
28
29
30
31
32
33
FROM golang:1.23 AS builder
WORKDIR /src
COPY ./watcher-tcp.go .
RUN CGO_ENABLED=0 GOOS=linux go build watcher-tcp.go
FROM bash:5.2-alpine3.19
LABEL org.opencontainers.image.source="https://github.com/bendoerr-terraform-modules/terraform-aws-fargate-on-demand-custodian"
LABEL org.opencontainers.image.description="Ben's Terraform AWS Fargate on Demand Module Custodian Sidecar"
LABEL org.opencontainers.image.authors="https://github.com/bendoerr"
LABEL org.opencontainers.image.licenses=MIT
WORKDIR /
RUN apk update && \
apk add --no-cache \
jq=~1.7 \
curl=~8.9 \
cmd:script=~2.39 \
cmd:ss=~6.6 \
aws-cli=~2.15
COPY ./custodian \
./dns-updater \
./event-emitter \
./task-reaper \
./
COPY --from=builder /src/watcher-tcp ./watcher-tcp
ENTRYPOINT ["./custodian"]