summaryrefslogtreecommitdiffstats
path: root/distributions/msb-apigateway/src/main/docker
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2017-08-15 19:22:03 +0800
committerHuabingZhao <zhao.huabing@zte.com.cn>2017-08-15 19:22:35 +0800
commit71488f1e6342dc8beaf26e633b6967b936c22c05 (patch)
treec6641fab148d61dc57cc45b2eeb252148d1aee00 /distributions/msb-apigateway/src/main/docker
parent86d68833aff7d24895a9512ab6fff0ed8439d753 (diff)
Add dockerfile for base image
Issue_Id: MSB-19 Change-Id: I4b1408a489a45052927fcc978e4803b545e06e06 Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'distributions/msb-apigateway/src/main/docker')
-rw-r--r--distributions/msb-apigateway/src/main/docker/Dockerfile13
1 files changed, 8 insertions, 5 deletions
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