-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile.pkg
More file actions
28 lines (24 loc) · 1011 Bytes
/
Containerfile.pkg
File metadata and controls
28 lines (24 loc) · 1011 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
ARG FREEBSD_RELEASE
FROM ghcr.io/freebsd/freebsd-runtime:${FREEBSD_RELEASE}
LABEL org.opencontainers.image.title="FreeBSD base" \
org.opencontainers.image.description="FreeBSD base image" \
org.opencontainers.image.authors="Jesús Daniel Colmenares Oviedo <dtxdf@disroot.org>"
ENV ASSUME_ALWAYS_YES=yes
RUN mkdir -p /etc/pkg && \
printf '%s\n' \
'FreeBSD-ports-kmods: { enabled: no }' \
'FreeBSD-base: {' \
' url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",' \
' mirror_type: "srv",' \
' signature_type: "fingerprints",' \
' fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",' \
' enabled: yes' \
'}' \
'FreeBSD-Ports: {' \
' url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",' \
' mirror_type: "srv",' \
' signature_type: "fingerprints",' \
' fingerprints: "/usr/share/keys/pkg",' \
' enabled: yes' \
'}' > /etc/pkg/FreeBSD.conf && \
rm -rf /usr/local/etc/pkg