improve docker build config

This commit is contained in:
孟政元 2018-01-25 23:46:24 +08:00
parent c6d3fd95bc
commit 0a8680eaa3

View File

@ -1,9 +1,11 @@
FROM mhart/alpine-node:8
FROM mhart/alpine-node:9
WORKDIR /app
COPY . /app
RUN npm install
RUN rm -rf node_modules \
&& rm package-lock.json \
&& npm install
EXPOSE 3000
CMD ["node", "app.js"]