From db733bacb58381480605fd6b73b583aca729e249 Mon Sep 17 00:00:00 2001 From: yoshinorin Date: Thu, 2 Nov 2023 21:30:53 +0900 Subject: [PATCH] chore(docker): delete unnecessary layer, package and files --- docker/Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index d65375b9..e5b1b3b0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -5,13 +5,10 @@ ENV QUALTET_VERSION="v2.10.0" RUN apt update -y \ && apt upgrade -y \ - && apt install -y git vim \ + && apt install -y git \ && apt autoremove \ - && apt clean - -WORKDIR /usr/opt - -RUN git clone --depth 1 --branch ${QUALTET_VERSION} https://github.com/yoshinorin/qualtet.git + && apt clean \ + && git clone --depth 1 --branch ${QUALTET_VERSION} https://github.com/yoshinorin/qualtet.git /usr/opt/qualtet WORKDIR /usr/opt/qualtet COPY entry-point.sh entry-point.sh @@ -20,7 +17,7 @@ COPY commit-hash.sh commit-hash.sh RUN sh commit-hash.sh \ && sbt assembly exit \ && cp ./target/scala-3.3.1/qualtet-assembly-${QUALTET_VERSION}.jar qualtet-assembly.jar \ - && rm -rf scripts docs docker .github .gitignore .editorconfig .git .env .env.example Makefile .githooks target .scalafmt.conf tools \ + && ls | grep -v -E 'qualtet-assembly.jar|entry-point.sh|commit-hash.sh|qualtet.build_hash' | xargs rm -r \ && chmod +x entry-point.sh ENTRYPOINT [ "/usr/opt/qualtet/entry-point.sh" ]