From 5d053d30d0c607d63ce46c3d7ce321bfdb1c11c1 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Tue, 28 Jul 2020 18:59:09 +0900 Subject: [PATCH] ci: Clean up apt cache and junk (#425) --- .github/workflows/dev-image.yml | 1 + Dockerfile | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev-image.yml b/.github/workflows/dev-image.yml index 856df0d..178fd12 100644 --- a/.github/workflows/dev-image.yml +++ b/.github/workflows/dev-image.yml @@ -39,6 +39,7 @@ jobs: - run: docker-compose pull --quiet if: github.event_name == 'pull_request' - run: make build + - run: docker images - run: make ci - run: make all - run: docker-compose push diff --git a/Dockerfile b/Dockerfile index 794dd18..fccf298 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN apt-get update && \ wget \ ssh \ vim && \ + apt-get autoclean && \ + apt-get clean && \ + apt-get autoremove -y && \ rm -rf /var/lib/apt/lists/* && \ npm i -g npm @@ -33,8 +36,10 @@ ENV GITHUB_REPOSITORY_OWNER="peaceiris" ENV GITHUB_ACTIONS="true" ENV CI="true" -RUN git config --global init.defaultBranch main - WORKDIR /repo +RUN rm -rf /git && \ + git --version && \ + git config --global init.defaultBranch main && \ + git config --global init.defaultBranch CMD [ "bash" ]