forked from fengkx/NodeRSSBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
9 lines (9 loc) · 714 Bytes
/
Dockerfile
File metadata and controls
9 lines (9 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
FROM node:10.14.2-alpine
WORKDIR /app
COPY . /app
ENV NODE_PRODUTION true
RUN npm install --production
RUN find node_modules -type f | egrep "(.idea|.vscode|benchmark.js|.eslintrc.js|changelog|AUTHORS|AUTHORSon|license|LICENSE|.travis.yml|.eslintrc.json|.eslintrc.yml|Makefile|.npmignore|.DS_Store|.jshintrc|.eslintrc.BSD|.editorconfig|tsconfig.json|tsconfig.jsonon|.coveralls.yml|appveyor.yml|.gitattributes|.eslintignore|.eslintrc|.eslintignore.BSD|.babelrc)" | xargs rm -rf && \
find node_modules -type f | egrep "\.(md|mdon|markdown|log|ts|swp|jst|coffee|txt|BSD)$" | xargs rm -f &&\
find node_modules -type d | egrep "(test|docs|doc|examples|example|.githubs)" | xargs rm -rf
ENTRYPOINT npm run start