~dricottone/container-images

ref: effcfb1243c7393510e269d50620bfcf6895b285 container-images/srht-core/Dockerfile -rw-r--r-- 713 bytes
effcfb12Dominic Ricottone Loki config fix 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine:3.17

RUN apk add --no-cache wget

RUN mv /etc/apk/repositories /etc/apk/repositories.bak
RUN arch="$(apk --print-arch)"; \
	case "$arch" in \
		x86_64) \
			repouri="https://mirror.sr.ht/alpine/v3.17/sr.ht"; \
			keyuri="https://mirror.sr.ht/alpine"; \
			keyfile="alpine@sr.ht.rsa.pub"; \
			;; \
		aarch64) \
			repouri="https://pkg.intra.dominic-ricottone.com/alpine/v3.17"; \
			keyuri="https://pkg.intra.dominic-ricottone.com/alpine"; \
			keyfile="me@dominic-ricottone.com.rsa.pub"; \
			;; \
		*) exit 1; ;; \
	esac; \
	wget --quiet --output-document=/etc/apk/keys/$keyfile $keyuri/$keyfile; \
	echo "$repouri" | cat - /etc/apk/repositories.bak >/etc/apk/repositories

COPY pgp.* /etc/sr.ht/