aboutsummaryrefslogtreecommitdiffstats
path: root/certService
diff options
context:
space:
mode:
Diffstat (limited to 'certService')
-rw-r--r--certService/Dockerfile7
-rw-r--r--certService/README.md13
2 files changed, 20 insertions, 0 deletions
diff --git a/certService/Dockerfile b/certService/Dockerfile
new file mode 100644
index 00000000..b6a657a1
--- /dev/null
+++ b/certService/Dockerfile
@@ -0,0 +1,7 @@
+FROM docker.io/openjdk:11-jre-slim
+
+ARG VERSION=0.0.1-SNAPSHOT
+
+COPY target/cert-service-${VERSION}.jar ./app/cert-service.jar
+
+ENTRYPOINT ["java","-jar","./app/cert-service.jar"]
diff --git a/certService/README.md b/certService/README.md
index 63956e28..72660cdc 100644
--- a/certService/README.md
+++ b/certService/README.md
@@ -18,3 +18,16 @@
mvn clean package
```
+
+### Building Docker image
+ ```
+ docker build -t cert-service .
+
+ ```
+
+### Running Docker container
+ ```
+ docker run -p 8080:8080 --name cert-service cert-service
+
+ ```
+