From c572721662904f52f628a2280f5f950459578467 Mon Sep 17 00:00:00 2001 From: mapleeit <522856232@qq.com> Date: Thu, 14 Mar 2019 17:22:35 +0800 Subject: [PATCH] fix(docker): update Dockerfile use node image for base image instead of alpine --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7356f76e..a0c5f657 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,8 @@ -FROM alpine -RUN apk --update --no-cache add procps git nodejs bash gawk -RUN git clone https://github.com/Tencent/TSW.git /TSW +FROM node:10 +COPY . /TSW WORKDIR /TSW -VOLUME /data/release/node_modules/ RUN npm install --no-optional +RUN apt-get update && apt-get install gawk EXPOSE 80 ENV IS_DOCKER=1 CMD ["/TSW/bin/proxy/startup.sh"] -