Dmitry Puzikov | 86359a2 | 2019-04-16 16:52:05 +0200 | [diff] [blame] | 1 | FROM @aai.docker.namespace@/aai-common-@aai.base.image@:@aai.base.image.version@ |
Steve Smokowski | ef768a7 | 2017-02-09 15:43:35 -0500 | [diff] [blame] | 2 | |
Fraboni, Gino (gf403a) | 578368f | 2017-05-03 13:47:43 -0400 | [diff] [blame] | 3 | ARG MICRO_HOME=/opt/app/model-loader |
Steve Smokowski | ef768a7 | 2017-02-09 15:43:35 -0500 | [diff] [blame] | 4 | |
Dmitry Puzikov | 86359a2 | 2019-04-16 16:52:05 +0200 | [diff] [blame] | 5 | WORKDIR $MICRO_HOME |
wr148d | 2cdc6af | 2020-06-01 14:37:38 -0400 | [diff] [blame] | 6 | |
Maharajh, Robby (rx2202) | e83a8f3 | 2021-02-24 13:32:28 -0500 | [diff] [blame^] | 7 | USER root |
| 8 | |
| 9 | RUN mkdir -p /opt/aaihome $MICRO_HOME /logs && \ |
| 10 | ln -s /logs $MICRO_HOME/logs && \ |
| 11 | chown -R aaiadmin:aaiadmin $MICRO_HOME && \ |
| 12 | chown -R aaiadmin:aaiadmin /logs |
wr148d | 2cdc6af | 2020-06-01 14:37:38 -0400 | [diff] [blame] | 13 | |
| 14 | COPY --chown=aaiadmin:aaiadmin /maven/model-loader/ . |
| 15 | |
Maharajh, Robby (rx2202) | e83a8f3 | 2021-02-24 13:32:28 -0500 | [diff] [blame^] | 16 | ENTRYPOINT ["/bin/bash", "/opt/app/model-loader/bin/start.sh"] |
| 17 | |
wr148d | 2cdc6af | 2020-06-01 14:37:38 -0400 | [diff] [blame] | 18 | USER aaiadmin |