新增docker-compose一键部署脚本 (#211)

This commit is contained in:
rye catcher
2022-04-20 11:00:31 +08:00
committed by GitHub
parent e550b8588a
commit ccd13aa524
2 changed files with 59 additions and 0 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
# 运行下面的命令, 构建qwert-learner镜像
# docker build -t qwertleanerapp .
# 下面的命令运行镜像, 访问localhost:8990访问应用, 8090可修改成你未占有的端口
# docker run -d -p 8990:3000 --name qwertleanerapp qwertleanerapp:latest
FROM node:14
MAINTAINER sevenyoungairye<lel.ng.top@gmail.com>
WORKDIR /app/qwert-learn
COPY package*.json .
COPY yarn.lock .
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install yarn -g --force
RUN yarn install
COPY . .
EXPOSE 3000
CMD yarn start