Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Fixes Dockerfile Error - Issue #236 #237

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ FROM openjdk:8-jre

VOLUME ["/hygieia/logs"]

RUN mkdir /hygieia/config
RUN mkdir -p /hygieia/config

EXPOSE 8080

ENV PROP_FILE /hygieia/config/application.properties
ENV PROJ_JAR api.jar

WORKDIR /hygieia

COPY target/*.jar /hygieia/
COPY target/api.jar /hygieia/
COPY docker/properties-builder.sh /hygieia/

CMD ./properties-builder.sh &&\
java -Djava.security.egd=file:/dev/./urandom -jar *.jar --spring.config.location=$PROP_FILE
java -Djava.security.egd=file:/dev/./urandom -jar $PROJ_JAR --spring.config.location=$PROP_FILE