-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#23] Add Dockerfile and docker-compose.yaml files
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |