1 Star 0 Fork 115

shawn / fastapi-vue-blog

forked from Hendy.xu / fastapi-vue-blog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webappSimple.dockerfile 552 Bytes
一键复制 编辑 原始数据 按行查看 历史
Hendy.xu 提交于 2022-03-09 13:59 . 1.fix bug
FROM node:12-buster as buildWeb
WORKDIR /workspace
COPY webui webui
WORKDIR /workspace/webui
RUN npm install
RUN npm run build:prod
FROM python:3.7-buster
WORKDIR /workspace
COPY webapi webapi
WORKDIR /workspace/webapi
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install -U setuptools
RUN pip install -r requirements.txt
COPY --from=buildWeb /workspace/webui/dist/static static
COPY --from=buildWeb /workspace/webui/dist/index.html static/
EXPOSE 5000
ENTRYPOINT uvicorn app:app --host 0.0.0.0 --port 5000
Python
1
https://gitee.com/wx_3d25ad0b9a/fastapi-vue-blog.git
git@gitee.com:wx_3d25ad0b9a/fastapi-vue-blog.git
wx_3d25ad0b9a
fastapi-vue-blog
fastapi-vue-blog
master

搜索帮助