2021-02-11 15:06:48 -05:00
|
|
|
ARG JAVA_VERSION=11
|
|
|
|
|
|
|
|
FROM openjdk:$JAVA_VERSION
|
|
|
|
|
|
|
|
WORKDIR /usr/bin/cre/
|
|
|
|
|
2021-08-01 17:21:11 -04:00
|
|
|
ARG CRE_ARTIFACT_NAME=ColorRecipesExplorer
|
|
|
|
COPY $CRE_ARTIFACT_NAME.jar ColorRecipesExplorer.jar
|
2021-02-11 15:06:48 -05:00
|
|
|
|
2021-08-01 17:21:11 -04:00
|
|
|
ARG CRE_PORT=9090
|
|
|
|
EXPOSE $CRE_PORT
|
2021-02-11 15:06:48 -05:00
|
|
|
|
|
|
|
ENV spring_profiles_active=h2,rest
|
|
|
|
ENV server_port=$PORT
|
|
|
|
ENV spring_datasource_url=jdbc:h2:mem:cre
|
|
|
|
ENV spring_datasource_username=root
|
|
|
|
ENV spring_datasource_password=pass
|
|
|
|
|
2021-03-06 21:24:30 -05:00
|
|
|
VOLUME /usr/bin/cre/data
|
2021-05-30 16:24:16 -04:00
|
|
|
VOLUME /usr/bin/cre/config
|
2021-03-06 21:24:30 -05:00
|
|
|
|
2021-02-11 15:06:48 -05:00
|
|
|
ENTRYPOINT ["java", "-jar", "ColorRecipesExplorer.jar"]
|