Skip to content
Permalink
Browse files

no comment

  • Loading branch information
xfanwu committed Jul 9, 2019
1 parent c19444f commit 9f05eddcd352cd8469cbd4cfddf75274750156f0
Showing with 4 additions and 4 deletions.
  1. +2 −2 node/Dockerfile.node-alpine
  2. +2 −2 node/Dockerfile.node-vue-alpine
@@ -1,7 +1,7 @@
FROM node:lts-alpine

RUN apk update && \
apk add --no-cache tzdata make gcc g++ python bash && \
apk add --no-cache tzdata make gcc g++ python bash git && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
date
@@ -21,7 +21,7 @@ ONBUILD RUN mv /tmp/node_modules /app/

ONBUILD COPY . .

RUN apk del make gcc g++ python tzdata
ONBUILD RUN apk del make gcc g++ python tzdata git

CMD ["npm", "start"]

@@ -12,10 +12,10 @@ WORKDIR /app

COPY .npmrc /root/.npmrc

ONBUILD ADD "package.json" "/tmp/"
ONBUILD COPY "package.json" "/tmp/"

ONBUILD RUN cd /tmp && \
npm install --production && \
npm install --only=production && \
npm install chalk

ONBUILD RUN mv /tmp/node_modules /app

0 comments on commit 9f05edd

Please sign in to comment.
You can’t perform that action at this time.