boxkit/Containerfile

28 lines
1.1 KiB
Text
Raw Normal View History

2024-05-02 14:00:29 +00:00
FROM quay.io/toolbx-images/alpine-toolbox:edge
LABEL com.github.containers.toolbox="true" \
usage="This image is meant to be used with the toolbox or distrobox command" \
summary="A cloud-native terminal experience" \
2024-08-22 19:15:56 +00:00
maintainer="me@babariviere.com"
2024-05-02 14:00:29 +00:00
2024-05-02 16:26:13 +00:00
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
2024-05-02 14:00:29 +00:00
COPY extra-packages /
RUN apk update && \
apk upgrade && \
grep -v '^#' /extra-packages | xargs apk add
RUN rm /extra-packages
2024-05-02 14:58:12 +00:00
COPY go-packages /
RUN grep -v '^#' /go-packages | xargs -n1 go install
2024-05-02 14:58:12 +00:00
RUN rm /go-packages
RUN mv /root/go/bin/* /usr/local/bin/
2024-05-02 14:00:29 +00:00
RUN ln -fs /bin/sh /usr/bin/sh && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \
2024-05-02 14:58:12 +00:00
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \
2024-05-02 14:00:29 +00:00
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree && \
2024-10-13 16:15:00 +00:00
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/transactional-update && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/op