summaryrefslogtreecommitdiffstats
path: root/ANR-App/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'ANR-App/Dockerfile')
-rw-r--r--ANR-App/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/ANR-App/Dockerfile b/ANR-App/Dockerfile
new file mode 100644
index 0000000..0a8c056
--- /dev/null
+++ b/ANR-App/Dockerfile
@@ -0,0 +1,12 @@
+FROM openjdk:16-jdk-alpine
+RUN apk update
+RUN apk add vim
+RUN apk add curl
+EXPOSE 9091
+RUN mkdir -p /var/opt/ranapp/config
+RUN chmod -R 777 /var/opt/ranapp
+WORKDIR /var/opt/ranapp
+ADD config/application.properties /var/opt/ranapp/config/application.properties
+RUN chmod -R 777 /var/opt/ranapp/config/
+COPY target/ranapp-0.0.1-SNAPSHOT.jar /var/opt/ranapp/ranapp-0.0.1-SNAPSHOT.jar
+ENTRYPOINT ["java","-jar","ranapp-0.0.1-SNAPSHOT.jar"]