2024-10-19 16:32:52 -05:00
|
|
|
FROM docker.io/library/archlinux:base-devel
|
|
|
|
|
|
|
|
LABEL com.github.containers.toolbox="true" \
|
|
|
|
name="daylinbox" \
|
|
|
|
version="base-devel" \
|
|
|
|
usage="This image is meant to be used by daylin" \
|
2024-11-25 16:57:05 -06:00
|
|
|
maintainer="Daylin Morgan <me@dayl.in>" \
|
|
|
|
summary="Daylin's distrobox Conatiner"
|
|
|
|
|
2024-11-25 16:59:51 -06:00
|
|
|
# unclear if this is needed
|
|
|
|
RUN pacman-key --init
|
|
|
|
|
2024-10-19 16:32:52 -05:00
|
|
|
# Install extra packages
|
|
|
|
COPY extra-packages my-extra-packages /
|
|
|
|
RUN pacman -Syu --needed --noconfirm - < extra-packages
|
|
|
|
RUN pacman -Syu --needed --noconfirm - < my-extra-packages
|
|
|
|
RUN rm /extra-packages /my-extra-packages
|
|
|
|
|
|
|
|
# Enable man pages, enable progress bars
|
|
|
|
RUN sed -i -e 's/NoProgressBar/#NoProgressBar/' -e 's/NoExtract/#NoExtract/' /etc/pacman.conf
|
|
|
|
|
|
|
|
# Force reinstall of packages which have man pages (shouldn't redownload any that were just upgraded)
|
|
|
|
RUN mkdir -p /usr/share/man && pacman -Qo /usr/share/man | awk '{print $5}' | xargs pacman -S --noconfirm man-db
|
|
|
|
|
2024-10-20 11:10:07 -05:00
|
|
|
RUN wget -qcO /usr/bin/pixi \
|
|
|
|
https://github.com/prefix-dev/pixi/releases/download/v0.33.0/pixi-x86_64-unknown-linux-musl \
|
|
|
|
&& chmod +x /usr/bin/pixi
|
|
|
|
|
2024-10-19 18:42:01 -05:00
|
|
|
# COPY add-aur.sh /
|
|
|
|
# RUN bash /add-aur.sh
|
|
|
|
# RUN aur-install delta
|
|
|
|
# RUN rm /add-aur.sh
|
|
|
|
|
2024-10-19 16:32:52 -05:00
|
|
|
# Clean up cache
|
|
|
|
RUN yes | pacman -Scc
|
|
|
|
|
|
|
|
# Enable sudo permission for wheel users
|
|
|
|
RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/toolbox
|