From 9738957d0697c098af8db9fed4c2c770998c6481 Mon Sep 17 00:00:00 2001 From: Luca Prete Date: Thu, 8 Aug 2019 16:30:28 +0200 Subject: [PATCH] [essepuntato/LODE#23] Add Dockerfile and docker-compose.yaml files --- Dockerfile | 9 +++++++++ docker-compose.yaml | 15 +++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2baec66 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM openjdk:8 + +RUN apt-get update && apt-get -y install maven git + +WORKDIR /lode + +EXPOSE 8080 8443 + +ENTRYPOINT ["mvn", "jetty:run"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..51c5b43 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,15 @@ +--- +version: '2' + +services: + + lode: + build: + context: ./ + dockerfile: Dockerfile + container_name: pdnd-ontopia-lode + image: teamdigitale/pdnd-ontopia-lode + stdin_open: true + tty: true + ports: + - 8080:8080/tcp