Skip to content

Commit 3fb7e7c

Browse files
committed
Moved Dockerfile to subfolder
Updated base image added dockerignore file [skip ci]
1 parent c42b55b commit 3fb7e7c

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

.dockerignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#git
2+
.git
3+
.gitattributes
4+
.gitignore
5+
.github/
6+
#IDE
7+
.idea
8+
#build
9+
.gradle/
10+
build
11+
#data
12+
production_db
13+
#misc
14+
CHANGELOG
15+
LICENSE
16+
temp
17+
docker

Dockerfile renamed to docker/Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
FROM openjdk:17-bullseye
2-
1+
FROM eclipse-temurin:17-jdk
32
ARG SERVER_NAME_DEFAULT=wapserver
43

54
#This is the post that you want to use on the HOST machine, not in the container itself
@@ -18,7 +17,7 @@ RUN apt-get -y update && \
1817
ENV SERVICE_DIRECTORY=${ROOT_DIRECTORY_DEFAULT}/${SERVER_NAME_DEFAULT}
1918
RUN mkdir -p /git
2019
WORKDIR /git
21-
COPY . .
20+
COPY .. .
2221
# Build service in given directory
2322
RUN echo $SERVICE_DIRECTORY
2423
RUN bash ./build.sh $SERVICE_DIRECTORY
@@ -29,8 +28,8 @@ ENV SPRING_APPLICATION_JSON "{\"WapPort\": ${PORT_DEFAULT}, \"Hostname\": \"${HO
2928
EXPOSE ${PORT_DEFAULT}
3029
EXPOSE ${SPARQL_DEFAULT}
3130
WORKDIR $SERVICE_DIRECTORY
32-
COPY ./profiles ./profiles/
33-
COPY ./schemas ./schemas/
34-
COPY ./webcontent ./webcontent/
35-
COPY ./doc ./doc/
31+
COPY ../profiles ./profiles/
32+
COPY ../schemas ./schemas/
33+
COPY ../webcontent ./webcontent/
34+
COPY ../doc ./doc/
3635
ENTRYPOINT ["/spring/wapserver/run.sh"]

0 commit comments

Comments
 (0)