This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
generated from ublue-os/boxkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make build footprint somewhat smaller (#24)
- Loading branch information
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
**/.* | ||
assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,10 @@ LABEL com.github.containers.toolbox="true" \ | |
maintainer="[email protected]" | ||
|
||
# install alpine packages | ||
COPY extra-packages / | ||
RUN apk update && \ | ||
apk upgrade && \ | ||
grep -v '^#' /extra-packages | xargs apk add | ||
RUN rm /extra-packages | ||
COPY extra-packages /tmp/extra-packages | ||
RUN apk update --no-cache && \ | ||
apk upgrade --no-cache && \ | ||
grep -v '^#' /tmp/extra-packages | xargs apk add --no-cache | ||
|
||
# install pipx | ||
ENV PIPX_HOME="/opt/pipx" | ||
|
@@ -28,9 +27,9 @@ RUN pipx install poetry | |
|
||
# install oh-my-zsh and plugins | ||
ENV ZSH="/opt/oh-my-zsh" | ||
RUN sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | ||
RUN git clone https://github.com/zsh-users/zsh-autosuggestions "$ZSH/custom/plugins/zsh-autosuggestions" | ||
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$ZSH/custom/plugins/zsh-syntax-highlighting" | ||
RUN sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \ | ||
git clone https://github.com/zsh-users/zsh-autosuggestions "$ZSH/custom/plugins/zsh-autosuggestions" && \ | ||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$ZSH/custom/plugins/zsh-syntax-highlighting" | ||
COPY opt/oh-my-zsh /opt/oh-my-zsh | ||
|
||
# fixing and updating helix syntax highlighting | ||
|
@@ -51,4 +50,5 @@ COPY opt/scripts /opt/scripts | |
RUN chmod +x /opt/scripts/*.sh | ||
|
||
# clean up and finalize container build | ||
RUN rm -rf /tmp/* | ||
RUN rm -rf /tmp/* && \ | ||
rm -rf /var/cache/apk/* |