From 71488f1e6342dc8beaf26e633b6967b936c22c05 Mon Sep 17 00:00:00 2001 From: HuabingZhao Date: Tue, 15 Aug 2017 19:22:03 +0800 Subject: Add dockerfile for base image Issue_Id: MSB-19 Change-Id: I4b1408a489a45052927fcc978e4803b545e06e06 Signed-off-by: HuabingZhao --- distributions/msb-apigateway/src/main/docker/Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'distributions/msb-apigateway/src/main/docker') diff --git a/distributions/msb-apigateway/src/main/docker/Dockerfile b/distributions/msb-apigateway/src/main/docker/Dockerfile index 8762900..18891c2 100644 --- a/distributions/msb-apigateway/src/main/docker/Dockerfile +++ b/distributions/msb-apigateway/src/main/docker/Dockerfile @@ -1,6 +1,9 @@ -FROM alpine:3.5 -ADD msb-apigateway*.tar.gz /opt/application +# Dockerfile - msb-apigateway +FROM msb_base:latest +COPY msb-apigateway*.tar.gz /usr/src -ENV LD_LIBRARY_PATH /lib64 -WORKDIR /opt/application/msb-apigateway -ENTRYPOINT exec $PWD/startup4docker.sh \ No newline at end of file +RUN tar -xzf /usr/src/msb-apigateway*.tar.gz -C /usr/local --strip-components=1; \ + rm /usr/src/msb-apigateway*.tar.gz + +WORKDIR /usr/local +ENTRYPOINT exec $PWD/startup4docker.sh -- cgit 1.2.3-korg