Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
fix: make build footprint somewhat smaller (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
tepene committed Apr 24, 2023
1 parent dd88ba1 commit fb109b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .containerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/.*
assets
18 changes: 9 additions & 9 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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/*

0 comments on commit fb109b0

Please sign in to comment.