Skip to content

Commit c42b55b

Browse files
committed
Fixes on dockerfile
1 parent 8739ea3 commit c42b55b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ARG SERVER_NAME_DEFAULT=wapserver
44

55
#This is the post that you want to use on the HOST machine, not in the container itself
66
ARG PORT_DEFAULT=8090
7+
ARG SPARQ_DEFAULT=3330
78
ARG HOST_DEFAULT=localhost
89
ARG ROOT_DIRECTORY_DEFAULT=/spring
910

@@ -23,9 +24,10 @@ RUN echo $SERVICE_DIRECTORY
2324
RUN bash ./build.sh $SERVICE_DIRECTORY
2425

2526
#You can use this to set config variables or mount in an application.properties file
26-
ENV SPRING_APPLICATION_JSON "{\"WapPort\": ${PORT_DEFAULT}, \"Hostname\": ${HOST_DEFAULT}}"
27+
ENV SPRING_APPLICATION_JSON "{\"WapPort\": ${PORT_DEFAULT}, \"Hostname\": \"${HOST_DEFAULT}\"}"
2728

2829
EXPOSE ${PORT_DEFAULT}
30+
EXPOSE ${SPARQL_DEFAULT}
2931
WORKDIR $SERVICE_DIRECTORY
3032
COPY ./profiles ./profiles/
3133
COPY ./schemas ./schemas/

0 commit comments

Comments
 (0)