-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
34 lines (27 loc) · 1005 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Copyright © 2021, Ozone HIS <info@ozone-his.com>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
FROM eclipse-temurin:17-jre-jammy
LABEL maintainer="ozone-his.com"
# Copy the application zip file
COPY app/target/*.zip eip-client.zip
RUN apt-get update && apt-get install -y unzip
RUN unzip eip-client.zip -d . && rm eip-client.zip
## Create the following directories:
## /config - for configuration files
## /eip-home - for the EIP home directory
## /routes - for the routes directory (both XML and Java DSL)
ARG EIP_CLIENT_DIR=/eip-client
ARG EIP_CONFIG_DIR=${EIP_CLIENT_DIR}/config
ARG EIP_HOME_DIR=${EIP_CLIENT_DIR}/eip-home
ARG EIP_ROUTES_DIR=${EIP_CLIENT_DIR}/routes
RUN mkdir -p ${EIP_CONFIG_DIR} ${EIP_HOME_DIR} ${EIP_ROUTES_DIR}
WORKDIR ${EIP_CLIENT_DIR}
ENV EIP_PROFILE=dev
RUN chmod +x ./start.sh
EXPOSE 8080
CMD ["./start.sh"]