Ai
1 Star 0 Fork 0

anydev/nicegui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
release.dockerfile 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
FROM python:3.11-slim as builder
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC \
apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
RUN python -m pip install --upgrade pip
RUN python -m pip install --upgrade libsass
FROM python:3.11-slim as release
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
ARG VERSION
LABEL maintainer="Zauberzeug GmbH <info@zauberzeug.com>"
RUN python -m pip install --upgrade pip
RUN python -m pip install \
nicegui[plotly,matplotlib]==$VERSION \
docutils \
isort \
itsdangerous \
pytest \
requests \
latex2mathml \
selenium
WORKDIR /app
COPY main.py README.md prometheus.py ./
COPY examples ./examples
COPY website ./website
RUN mkdir /resources
COPY docker-entrypoint.sh /resources
RUN chmod 777 /resources/docker-entrypoint.sh
EXPOSE 8080
ENV PYTHONUNBUFFERED True
ENTRYPOINT ["/resources/docker-entrypoint.sh"]
CMD ["python", "main.py"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anydev/nicegui.git
git@gitee.com:anydev/nicegui.git
anydev
nicegui
nicegui
main

搜索帮助