Skip to content

Commit

Permalink
[#23] Add Dockerfile and docker-compose.yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaPrete committed Aug 8, 2019
1 parent c8a6bad commit ccbc167
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM openjdk:8

RUN apt-get update && apt-get -y install maven git

RUN git clone https://github.com/essepuntato/LODE.git lode

# Override Jetty configuration to enable HTTPS
COPY pom.xml lode/pom.xml

WORKDIR /lode

# Follow HTTP(s) schema while downloading CSS and JS files
RUN sed -i 's/"http:\/\/"/"\/\/"/g' src/main/java/it/essepuntato/lode/LodeServlet.java

EXPOSE 8080 8443

ENTRYPOINT ["mvn", "jetty:run"]
15 changes: 15 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ccbc167

Please sign in to comment.