Commit fb563f23 authored by David Diederich's avatar David Diederich
Browse files

Add build argument for the jar's version, rather than hard-coding to 0.0.1

parent 3ec4dfdf
FROM amazoncorretto:8
ARG JAR_VERSION
ENV JAR_FILE=indexer-aws-${JAR_VERSION}-spring-boot.jar
WORKDIR /
COPY provider/indexer-aws/target/indexer-aws-0.0.1-SNAPSHOT-spring-boot.jar indexer-aws-0.0.1-SNAPSHOT-spring-boot.jar
COPY provider/indexer-aws/target/$JAR_FILE $JAR_FILE
EXPOSE 8080
CMD ["java","-jar", "indexer-aws-0.0.1-SNAPSHOT-spring-boot.jar"]
\ No newline at end of file
CMD java -jar $JAR_FILE
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment