aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/docker/Dockerfile
blob: 369d1b524a141d36a6c84283ff463bd91262de57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM @aai.docker.namespace@/aai-common-@aai.base.image@:@aai.base.image.version@

ARG MICRO_HOME=/opt/app/babel

# Build up the deployment folder structure
RUN mkdir -p $MICRO_HOME $MICRO_HOME/logs

RUN groupadd aaiadmin -g 1000
RUN adduser -u 1000 -h /opt/aaihome/aaiadmin -S -D -G aaiadmin -s /bin/bash aaiadmin
WORKDIR $MICRO_HOME

RUN chown -R aaiadmin:aaiadmin $MICRO_HOME $MICRO_HOME/logs

COPY --chown=aaiadmin:aaiadmin /maven/babel/ .

USER aaiadmin

RUN chmod 755 bin/* \
    && ln -s /logs $MICRO_HOME/logs

CMD ["/opt/app/babel/bin/start.sh"]