-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.template
More file actions
25 lines (19 loc) · 962 Bytes
/
Dockerfile.template
File metadata and controls
25 lines (19 loc) · 962 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
FROM alpine:3.22 AS verify
COPY TEMPLATE_ROOTFS_FILE /
RUN apk add --no-cache curl tar zstd
RUN TEMPLATE_ROOTFS_DOWNLOAD && \
echo "TEMPLATE_ROOTFS_HASH" > /tmp/sha256sums.txt && \
sha256sum -c /tmp/sha256sums.txt && \
mkdir /rootfs && \
tar -C /rootfs --extract --file TEMPLATE_ROOTFS_FILE
FROM scratch AS root
LABEL org.opencontainers.image.title="TEMPLATE_TITLE"
LABEL org.opencontainers.image.description="Official containerd image of Parch Linux"
LABEL org.opencontainers.image.authors="Amir Husayn Panahifar <ahp@panahifar.ir> (@ahp)"
LABEL org.opencontainers.image.url="https://github.com/parchlinux/parchlinux-docker/blob/main/README.md"
LABEL org.opencontainers.image.documentation="https://wiki.parchlinux.com/en/home"
LABEL org.opencontainers.image.source="https://github.com/parchlinux/parchlinux-docker.git"
LABEL org.opencontainers.image.licenses="GPL-3.0"
COPY --from=verify /rootfs/ /
ENV LANG=C.UTF-8
CMD ["/usr/bin/bash"]