update docker
This commit is contained in:
parent
17528cc096
commit
53154c59b9
|
@ -4,7 +4,7 @@ ENV TIME_ZONE=Asia/Shanghai
|
||||||
|
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
|
||||||
&& apk update \
|
&& apk update \
|
||||||
&& apk add --no-cache shadow git nodejs nodejs-current-npm bash vim tar curl python python-dev py-pip gcc libcurl make\
|
&& apk add --no-cache shadow git nodejs nodejs-current-npm bash vim tar curl python python-dev py-pip gcc g++ libcurl make\
|
||||||
&& usermod -s /bin/bash root \
|
&& usermod -s /bin/bash root \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
@ -18,6 +18,8 @@ RUN \
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
COPY package.json /usr/src/app/
|
COPY package.json /usr/src/app/
|
||||||
|
COPY docker/entrypoint.sh /
|
||||||
|
|
||||||
|
|
||||||
RUN npm install --registry=https://registry.npm.taobao.org
|
RUN npm install --registry=https://registry.npm.taobao.org
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,8 @@ cd /usr/src/app
|
||||||
echo "START INFINI-LOGGING-CENTER v1.0"
|
echo "START INFINI-LOGGING-CENTER v1.0"
|
||||||
|
|
||||||
if [ ! -f "$lockPath" ]; then
|
if [ ! -f "$lockPath" ]; then
|
||||||
npm i --production;
|
npm install --registry=https://registry.npm.taobao.org
|
||||||
|
# npm i --production;
|
||||||
# npm run autod
|
# npm run autod
|
||||||
npm run dev
|
npm run dev
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue