generated from ublue-os/boxkit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Containerfile
36 lines (29 loc) · 1.42 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
34
35
36
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" \
maintainer="[email protected]"
COPY extra-packages /
RUN apk update && \
apk upgrade && \
grep -v '^#' /extra-packages | xargs apk add
RUN rm /extra-packages
RUN wget -q -O /usr/local/bin/sops https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux.amd64 && \
chmod 755 /usr/local/bin/sops
RUN wget -q -O /tmp/notes.zip https://github.com/rhysd/notes-cli/releases/download/v1.6.2/notes_linux_amd64.zip && \
cd /tmp && \
unzip ./notes.zip && \
mv /tmp/notes /usr/local/bin/ && \
cd -
RUN wget -q -O /tmp/ghq_linux_amd64.zip https://github.com/x-motemen/ghq/releases/download/v1.4.2/ghq_linux_amd64.zip && \
cd /tmp && \
unzip ./ghq_linux_amd64.zip && \
mv /tmp/ghq_linux_amd64/ghq /usr/local/bin/ && \
chmod 755 /usr/local/bin/ghq && \
cd -
RUN ln -fs /bin/sh /usr/bin/sh && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \
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/transactional-update