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 /
|
2024-05-02 16:03:55 +00:00
|
|
|
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 && \
|
|
|
|
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/transactional-update
|
2024-10-12 16:56:54 +00:00
|
|
|
|
|
|
|
RUN which elvish | tee -a /etc/shells && chsh -s $(which elvish)
|