From 1b379951709e3eb8543030470ba25c4998195667 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Tue, 18 May 2021 10:44:05 +0700 Subject: [PATCH] Add dockerfile support --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..58689d8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM cubetiq/calpine-openjdk11:latest +LABEL maintainer="sombochea@cubetiqs.com" + +# Working directory for application +WORKDIR /opt/cubetiq + +# Define mount volumn for data path +VOLUME ["/opt/cubetiq/data"] + +# Copy build source to container +COPY api/build/libs/*.jar ./api.jar + +ENV APP_DATA_DIR "/opt/cubetiq/data" + +# Entrypoint to app +CMD ["java","-jar", "./api.jar"] \ No newline at end of file