1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00
dockerfiles/optaweb-employee-rostering/Dockerfile

24 lines
562 B
Docker
Raw Normal View History

2019-12-09 07:46:47 +00:00
#
# Dockerfile for optaweb-employee-rostering
#
2021-11-17 11:12:33 +00:00
FROM openjdk:11-jdk-slim
2019-12-09 07:46:47 +00:00
MAINTAINER EasyPi Software Foundation
2021-11-17 11:12:33 +00: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 07:46:47 +00:00
2021-11-17 11:12:33 +00: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 07:46:47 +00:00
2021-11-17 11:12:33 +00:00
WORKDIR /opt/app
2019-12-09 07:46:47 +00:00
EXPOSE 8080
2021-11-17 11:12:33 +00:00
CMD /opt/app/bin/runLocally.sh