1 Star 0 Fork 119

sugardady/fastapi-vue-blog

forked from Hendy.xu/fastapi-vue-blog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webapp.dockerfile 1005 Bytes
一键复制 编辑 原始数据 按行查看 历史
Hendy.xu 提交于 2022-05-28 20:21 . 1.添加.env
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
RUN echo 'deb http://mirrors.163.com/debian/ stretch main non-free contrib' > /etc/apt/sources.list
RUN echo 'deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib' >> /etc/apt/sources.list
RUN echo 'deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib' >> /etc/apt/sources.list
RUN apt update
RUN apt install -y libtinfo5 --allow-remove-essential
RUN apt install -y ncurses-base
RUN apt install -y vim
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/benboy/fastapi-vue-blog.git
git@gitee.com:benboy/fastapi-vue-blog.git
benboy
fastapi-vue-blog
fastapi-vue-blog
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385