-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (22 loc) · 1.01 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
# Create a base layer with linkerd-await from a recent release.
FROM docker.io/curlimages/curl:latest as linkerd
ARG LINKERD_AWAIT_VERSION=v0.2.9
RUN curl -sSLo /tmp/linkerd-await https://github.com/linkerd/linkerd-await/releases/download/release%2F${LINKERD_AWAIT_VERSION}/linkerd-await-${LINKERD_AWAIT_VERSION}-amd64 && \
chmod 755 /tmp/linkerd-await
################################################################################
FROM golang:1.23-alpine as builder
ENV CGO_ENABLED=0
ARG TARGETOS
ARG TARGETARCH
RUN apk add --no-cache make git
COPY . /src
RUN make -C /src
################################################################################
FROM alpine:3.21
LABEL source_repository="https://github.com/sapcc/archer"
# upgrade all installed packages to fix potential CVEs in advance
RUN apk upgrade --no-cache --no-progress \
&& apk add --no-cache ca-certificates haproxy
COPY --from=builder /src/bin/ /usr/bin/
COPY --from=linkerd /tmp/linkerd-await /linkerd-await
ENTRYPOINT [ "/usr/bin/archer-server" ]