diff --git a/Dockerfile b/Dockerfile index 76c93a3..b62ecd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,7 @@ LABEL maintainer="michael.c.conway@gmail.com" LABEL description="iRODS Metadata Template REST endpoint" ADD runit.sh / -ADD metadata-template-rest.jar / +ADD target/metadata-template-rest.jar / CMD ["/runit.sh"] - - # build: docker build -t diceunc/metadata-template-rest:latest . diff --git a/README.md b/README.md index c6b9c48..25266af 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,21 @@ # irods-ext-metadata-template-service irods-ext based metadata template service + + + +### Building + +This is a spring boot application run as a single executable jar, therefore, to build for docker packaging, run + +``` +mvn package spring-boot:repackage + +``` + +The docker image can be build using the provided Dockerfile at the root of this repo using a command such as + +``` +docker build -t diceunc/metadata-template-rest:latest . + +``` +