Dockerfile 785 Bytes
Newer Older
1
#
ipatini's avatar
ipatini committed
2
# Copyright (C) 2017-2019 Institute of Communication and Computer Systems (imu.iccs.gr)
3
#
ipatini's avatar
ipatini committed
4
5
6
7
# This Source Code Form is subject to the terms of the Mozilla Public License, v2.0, unless 
# Esper library is used, in which case it is subject to the terms of General Public License v2.0.
# If a copy of the MPL was not distributed with this file, you can obtain one at 
# https://www.mozilla.org/en-US/MPL/2.0/
8
9
#

10
FROM java:8-alpine
11

12
ENV BASEDIR /opt/ems-server
13
14
ENV MELODIC_CONFIG_DIR ${BASEDIR}/config
ENV PAASAGE_CONFIG_DIR ${BASEDIR}/config
15
16
17
ENV JAR_PATH ${BASEDIR}/jars

WORKDIR ${BASEDIR}
18
RUN /bin/sh -c "apk add --no-cache bash"
19

20
21
ADD bin ./bin
ADD jars ./jars
22
23
ADD config ./config
ADD resources ./resources
24

25
RUN mkdir logs
26
RUN bash -c 'chmod +rx ./bin/*.sh'
27

28
ENTRYPOINT ["./bin/run.sh"]