-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
31 lines (30 loc) · 1.04 KB
/
Containerfile
File metadata and controls
31 lines (30 loc) · 1.04 KB
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
# SPDX-FileCopyrightText: 2023-2026 David Rabkin
# SPDX-License-Identifier: 0BSD
FROM golang:1.26.1-alpine AS builder
ENV \
SHA=b15cf99b6d11e586223f24712d90d739e6e115abe4b423d26da9412b90339f41 \
VER=2.9.2
ENV \
NME=goredo-$VER.tar.zst \
URL=http://www.goredo.stargrave.org/download/goredo-$VER.tar.zst
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
RUN \
apk add --no-cache --update \
curl~=8.17 \
zstd~=1.5 \
&& curl --location --remote-name --silent $URL \
&& printf %s\ \ %s $SHA $NME | sha256sum -cs \
&& zstd --decompress < $NME | \
tar --extract --file - --strip-components=2 goredo-$VER/src \
&& unset GOPATH \
&& go build -mod=vendor
FROM alpine:3.23.3
LABEL \
maintainer=David\ Rabkin\ <david@rabkin.co.il> \
org.opencontainers.image.description='Includes the Goredo utility.' \
org.opencontainers.image.licenses=0BSD \
org.opencontainers.image.source=https://github.com/rdavid/goredoer \
org.opencontainers.image.title=Goredoer \
org.opencontainers.image.vendor=David\ Rabkin
COPY LICENSES/* /licenses/
COPY --from=builder /go/goredo /