Skip to content

Commit

Permalink
修复Docker构建失败问题;
Browse files Browse the repository at this point in the history
  • Loading branch information
cxOrz committed Oct 17, 2022
1 parent 30e5e2e commit 543cb6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ FROM node:16-alpine

WORKDIR /app

COPY ["package.json", "yarn.lock", "./"]
COPY . .

RUN corepack enable && yarn && yarn build

COPY . .

EXPOSE 5000

CMD [ "node", "build/serve.js" ]

0 comments on commit 543cb6e

Please sign in to comment.