This repository has been archived by the owner on Jun 22, 2023. It is now read-only.
forked from ublue-os/boxkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
33 lines (28 loc) · 1.52 KB
/
Containerfile
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
29
30
31
32
33
FROM quay.io/toolbx-images/alpine-toolbox:edge
LABEL com.github.containers.toolbox="true" \
usage="My personal Boxkit image" \
summary="A cloud-native version of the tools I use daily" \
maintainer="jerbmega"
COPY extra-packages /
RUN apk update && \
apk upgrade && \
grep -v '^#' /extra-packages | xargs apk add
RUN rm /extra-packages
COPY bin /bin
RUN chmod +x /bin/wine # TODO don't hardcode this
# Add antigen (will be used by dotfiles later)
# There's no packages for this in Alpine but in this case it doesn't matter,
# it's just a .zsh file and the end result is what's important here
RUN curl -L https://raw.githubusercontent.com/zsh-users/antigen/master/bin/antigen.zsh > /usr/share/antigen.zsh
RUN ln -fs /bin/sh /usr/bin/sh && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker-compose && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman-compose && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \
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/rpm && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/systemctl && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/distrobox && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/tailscale && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/updatedb && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/locate