Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
feat: add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Mar 23, 2020
1 parent 68bd4c5 commit bf6ea14
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
FROM node
FROM node:12-alpine

LABEL maintainer="Yancey Leo <yanceyofficial@gmail.com>" \
version="0.1"

COPY . /home/blog

RUN cd /home/blog && npm install --production -d --registry=https://registry.npm.taobao.org

WORKDIR /home/blog

EXPOSE 3002

CMD ["yarn", "start"]
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8560,7 +8560,7 @@ node-notifier@^6.0.0:
shellwords "^0.1.1"
which "^1.3.1"

node-pre-gyp@*, node-pre-gyp@0.14.0:
node-pre-gyp@0.14.0:
version "0.14.0"
resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.14.0.tgz#9a0596533b877289bcad4e143982ca3d904ddc83"
integrity sha512-+CvDC7ZttU/sSt9rFjix/P05iS43qHCOOGzcr3Ry99bXG7VX953+vFyEuph/tfqoYu8dttBkE86JSKBO2OzcxA==
Expand Down

0 comments on commit bf6ea14

Please sign in to comment.