Add Docker file
Issue-ID: AAF-995
Signed-off-by: Adam Wudzinski <adam.wudzinski@nokia.com>
Change-Id: I6bcd59a7eeb41318edfe1845f4ea7f99d97a4ac8
diff --git a/.gitreview b/.gitreview
index 468b722..12e1b42 100644
--- a/.gitreview
+++ b/.gitreview
@@ -1,8 +1,7 @@
-
- [gerrit]
- host=gerrit.onap.org
- port=29418
- project=aaf/certservice
- defaultbranch=master
- asd=asdf
-
\ No newline at end of file
+[gerrit]
+host=gerrit.onap.org
+port=29418
+project=aaf/certservice
+defaultbranch=master
+asd=asdf
+
diff --git a/certService/Dockerfile b/certService/Dockerfile
new file mode 100644
index 0000000..b6a657a
--- /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 63956e2..72660cd 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
+
+ ```
+