Skip to content

Commit

Permalink
chore(docker): delete unnecessary layer, package and files
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Nov 2, 2023
1 parent b40a9ff commit db733ba
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" ]

0 comments on commit db733ba

Please sign in to comment.