2019-12-09 09:46:47 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for optaweb-employee-rostering
|
|
|
|
#
|
|
|
|
|
2021-11-17 13:12:33 +02:00
|
|
|
FROM openjdk:11-jdk-slim
|
2019-12-09 09:46:47 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
|
2021-11-17 13:12:33 +02:00
|
|
|
ENV APP_VERSION=8.13.0.Final
|
|
|
|
ENV APP_FILE=optaweb-employee-rostering-distribution-${APP_VERSION}.zip
|
|
|
|
ENV APP_URL=https://download.jboss.org/optaplanner/release/${APP_VERSION}/${APP_FILE}
|
2019-12-09 09:46:47 +02:00
|
|
|
|
2021-11-17 13:12:33 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apt update -y \
|
|
|
|
&& apt install -y wget unzip \
|
|
|
|
&& cd /opt \
|
|
|
|
&& wget ${APP_URL} \
|
|
|
|
&& unzip ${APP_FILE} \
|
|
|
|
&& mv ${APP_FILE%.zip} app \
|
|
|
|
&& rm -rf ${APP_FILE} /var/lib/apt/lists/*
|
2019-12-09 09:46:47 +02:00
|
|
|
|
2021-11-17 13:12:33 +02:00
|
|
|
WORKDIR /opt/app
|
2019-12-09 09:46:47 +02:00
|
|
|
EXPOSE 8080
|
2021-11-17 13:12:33 +02:00
|
|
|
CMD /opt/app/bin/runLocally.sh
|