Skip to content

Commit

Permalink
use git hash in the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Goina committed May 23, 2024
1 parent 57b9dd7 commit f51a84e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ RUN apt update && \
apt install -y git

WORKDIR /neuron-search-tools
RUN git clone https://github.com/JaneliaSciComp/colormipsearch.git . && \
./mvnw package
ENV COMMIT_HASH=57b9dd74
RUN git clone --depth 2 https://github.com/JaneliaSciComp/colormipsearch.git . && \
git reset --hard ${COMMIT_HASH} && \
./mvnw package && \
echo ${COMMIT_HASH} > .commit

FROM azul/zulu-openjdk:21.0.2-jdk

WORKDIR /app
COPY --from=builder /neuron-search-tools/.commit ./.commit
COPY --from=builder /neuron-search-tools/target/colormipsearch-3.1.0-jar-with-dependencies.jar ./colormipsearch-3.1.0-jar-with-dependencies.jar

0 comments on commit f51a84e

Please sign in to comment.