-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 864 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (22 loc) · 864 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
32
FROM docker.io/golang:1.24.6 AS build
ARG VERSION="0.5.0"
WORKDIR /build
COPY . .
RUN go build -ldflags="-s -w \
-X main.version=${VERSION} \
-X main.commitHash=$(git rev-parse HEAD | cut -c1-8) \
-X main.buildDate=$(date -u '+%Y-%m-%d_%I:%M:%S%p')" \
-o peage
FROM cgr.dev/chainguard/wolfi-base:latest
ARG VERSION="0.5.0"
COPY --from=build --chown=0:0 --chmod=0755 \
/build/peage /usr/bin/peage
ENTRYPOINT [ "/usr/bin/peage" ]
EXPOSE 2375/tcp
LABEL \
org.opencontainers.image.title="peage" \
org.opencontainers.image.source="https://github.com/f-bn/peage" \
org.opencontainers.image.version="${VERSION}" \
org.opencontainers.image.description="Simple container engine API socket filtering reverse proxy" \
org.opencontainers.image.licenses="BSD-3-Clause" \
org.opencontainers.image.authors="Florian Bobin <contact@fbobin.me>"