update docker

This commit is contained in:
medcl 2020-03-22 00:09:24 +08:00
parent 17528cc096
commit 53154c59b9
3 changed files with 7 additions and 4 deletions

View File

@ -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 \
&& 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 \
&& rm -rf /var/cache/apk/*
@ -18,6 +18,8 @@ RUN \
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
COPY docker/entrypoint.sh /
RUN npm install --registry=https://registry.npm.taobao.org

View File

@ -7,8 +7,8 @@ services:
# option 2: build image locally
# build:
# context: ../
# dockerfile: docker/Dockerfile
# context: ../
# dockerfile: docker/Dockerfile
ports:
- 3000:3000

View File

@ -9,7 +9,8 @@ cd /usr/src/app
echo "START INFINI-LOGGING-CENTER v1.0"
if [ ! -f "$lockPath" ]; then
npm i --production;
npm install --registry=https://registry.npm.taobao.org
# npm i --production;
# npm run autod
npm run dev
else