Skip to content

Commit

Permalink
update docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
meetcw committed Jul 1, 2022
1 parent 48b97d7 commit 5ef64e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ node_modules
vercel.json

# 无关的文件
.dockerignore
.git
.github
.gitignore
.dockerignore
app.json
heroku.yml
Dockerfile
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ FROM node:latest

WORKDIR /app

COPY ./ ./
COPY ./package*.json ./
RUN npm install
COPY ./ ./
RUN npm run build

ENV TOKEN= LOG_LEVEL=info PORT=3000
Expand Down

0 comments on commit 5ef64e3

Please sign in to comment.