summaryrefslogtreecommitdiffstats
path: root/src/main/docker/Dockerfile
blob: 1cd5e65947a9f0df70076b4cef56e622e38f1640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM anapsix/alpine-java:jre8

ARG MICROSERVICE_HOME=/opt/app/

# Build up the deployment folder structure
RUN mkdir -p $MICROSERVICE_HOME
RUN mkdir -p $MICROSERVICE_HOME/config/
RUN mkdir -p $MICROSERVICE_HOME/lib/
RUN mkdir -p $MICROSERVICE_HOME/bin/

ADD pomba-context-aggregator.jar $MICROSERVICE_HOME/lib/
COPY config/ $MICROSERVICE_HOME/config/
ADD startService.sh $MICROSERVICE_HOME/bin/

RUN chmod 755 $MICROSERVICE_HOME/config/*
RUN chmod 755 $MICROSERVICE_HOME/lib/*
RUN chmod 755 $MICROSERVICE_HOME/bin/*
# RUN apk --no-cache add curl

CMD ["/opt/app/bin/startService.sh"]