Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker构建 #6

Open
jongbaker opened this issue Aug 8, 2023 · 1 comment
Open

docker构建 #6

jongbaker opened this issue Aug 8, 2023 · 1 comment

Comments

@jongbaker
Copy link

基于node镜像

FROM node:lts-alpine

设置工作目录

WORKDIR /app

复制所有文件到工作目录

COPY . .

安装依赖

RUN npm install --registry=https://registry.npm.taobao.org

暴露端口

EXPOSE 4200

启动容器时运行npm start

CMD ["npm", "start"]

能否添加一个Dockerfile用于镜像构建

@CN-Tower
Copy link
Owner

Angular的版本比较老,已经构建不了了。准备用Vue重构,参考zjson-6.0分支

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants