1 Star 0 Fork 230

ChanJeunlam / PrimarySchoolMathematics

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dockerfile 634 Bytes
一键复制 编辑 原始数据 按行查看 历史
kk 提交于 2023-04-11 00:14 . ci: 构建部署体系
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY /vue3_webfrontend/package.json /app/
COPY /vue3_webfrontend/yarn.lock /app/
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && npm config set registry https://registry.npm.taobao.org && yarn
COPY /vue3_webfrontend/ /app/
RUN yarn build
FROM python:3.8
WORKDIR /usr/src/app
COPY --from=build-stage /app/dist/ /usr/src/app/dist
COPY /webbackend/requirements.txt .
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY /webbackend/ .
ENV ENV=prod
EXPOSE 1101
CMD python main.py
Python
1
https://gitee.com/chanjeunlam/PrimarySchoolMathematics.git
git@gitee.com:chanjeunlam/PrimarySchoolMathematics.git
chanjeunlam
PrimarySchoolMathematics
PrimarySchoolMathematics
master

搜索帮助