Skip to content
Snippets Groups Projects
Commit cb02d8b9 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 2def0681
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,11 @@
# limitations under the License.
FROM amazoncorretto:8
ARG JAR_VERSION
ENV JAR_FILE=search-aws-${JAR_VERSION}-spring-boot.jar
WORKDIR /
COPY provider/search-aws/target/search-aws-0.0.1-SNAPSHOT-spring-boot.jar search-aws-0.0.1-SNAPSHOT-spring-boot.jar
COPY provider/search-aws/target/$JAR_FILE $JAR_FILE
EXPOSE 8080
CMD ["java","-jar", "search-aws-0.0.1-SNAPSHOT-spring-boot.jar"]
CMD java -jar $JAR_FILE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment