Skip to content

Commit

Permalink
no comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xfanwu committed Jul 9, 2019
1 parent c19444f commit 9f05edd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions node/Dockerfile.node-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
Expand All @@ -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"]

4 changes: 2 additions & 2 deletions node/Dockerfile.node-vue-alpine
Expand Up @@ -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
Expand Down

0 comments on commit 9f05edd

Please sign in to comment.