Update Dockerfile

This commit is contained in:
a76yyyyy 2021-10-27 12:05:13 +08:00 committed by GitHub
parent 42a64dc0e1
commit b931bfde40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ WORKDIR /app
COPY . /app COPY . /app
RUN npm config set registry "https://registry.npm.taobao.org/" \ RUN npm config set registry "https://registry.npm.taobao.org/" \
&& npm install -g npm husky \
&& npm install --production && npm install --production
EXPOSE 3000 EXPOSE 3000