Skip to content

Commit

Permalink
perf: remove apt cache when building dev image
Browse files Browse the repository at this point in the history
  • Loading branch information
this-is-tobi committed Jan 2, 2025
1 parent e5b0446 commit f050018
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ __Versions correlation table :__
| act-runner | 2.0.2 | `docker.io/ubuntu:24.04` |
| curl | 1.1.0 | `docker.io/alpine:3.21.0` |
| debug | 2.1.0 | `docker.io/debian:12` |
| dev | 2.0.1 | `docker.io/debian:12` |
| dev | 2.0.2 | `docker.io/debian:12` |
| pg-backup | 3.0.2 | `docker.io/postgres:17.2` |
| pg-backup | 2.0.2 | `docker.io/postgres:16.6` |
| pg-backup | 1.4.5 | `docker.io/postgres:15.10` |
Expand Down
2 changes: 1 addition & 1 deletion ci/matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"context": "./docker/dev",
"dockerfile": "./docker/dev/Dockerfile",
"target": "build",
"tag": "2.0.1",
"tag": "2.0.2",
"latest": true
}
},
Expand Down
3 changes: 2 additions & 1 deletion docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ WORKDIR $HOME

RUN git clone https://github.com/this-is-tobi/dotfiles && touch ./.zshrc \
&& ./dotfiles/setup/setup-debian.sh -p "base,devops,secops,go,js" -d -c \
&& sudo rm -rf /tmp/*
&& sudo rm -rf /tmp/* \
&& sudo rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["/bin/zsh"]

0 comments on commit f050018

Please sign in to comment.