Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add pacman update commands to each Dockerfile layer #38

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ FROM arch-base AS install
# single docker build. Ansible is super slow to install for some reason...
RUN <<-EOF
export USE_EMOJI=0
sudo pacman -Syu --noconfirm
sudo pacman -S --needed --noconfirm python-pipx
pipx install --include-deps ansible
EOF

# Install the packages Ansible will want to install later. There's no need to
# excessively download packages from the Manjaro repo every build...
COPY manjaro_packages .
RUN sudo pacman -S --needed --noconfirm - < manjaro_packages
RUN <<-EOF
sudo pacman -Syu --noconfirm
sudo pacman -S --needed --noconfirm - < manjaro_packages
EOF

FROM install AS copy

Expand Down
Loading