1 Star 0 Fork 120

东方甲乙木/fastapi-vue-blog

forked from Hendy.xu/fastapi-vue-blog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webapp.dockerfile 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
Lion Yie 提交于 2023-10-22 10:47 . chore: Update webapp.dockerfile
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://archive.debian.org/debian/ stretch main contrib non-free \
deb-src http://archive.debian.org/debian/ stretch main contrib non-free \
deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free \
deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free \
deb http://archive.debian.org/debian/ stretch-backports main contrib non-free \
' > /etc/apt/sources.list && \
apt-get update && \
apt update && \
apt install -y libtinfo5 --allow-remove-essential && \
apt install -y ncurses-base
WORKDIR /workspace
COPY webapi webapi
WORKDIR /workspace/webapi
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install -U setuptools && \
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/softwyy/fastapi-vue-blog.git
git@gitee.com:softwyy/fastapi-vue-blog.git
softwyy
fastapi-vue-blog
fastapi-vue-blog
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385