1 Star 4 Fork 3

qiling/qiling

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 901 Bytes
一键复制 编辑 原始数据 按行查看 历史
Zephyr Lykos 提交于 2024-01-09 13:25 +08:00 . fix: project metadata and docker builds
FROM python:3-slim AS base
WORKDIR /qiling
# hadolint global ignore=DL3008,DL3013
ENV DEBIAN_FRONTEND=noninteractive
ENV AM_I_IN_A_DOCKER_CONTAINER=True
RUN apt-get update && apt-get -y upgrade && rm -rf /var/lib/apt/lists/*
FROM base AS builder
RUN apt-get update && apt-get install -y --no-install-recommends \
cmake build-essential gcc git \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml poetry.lock ./
RUN pip3 install --no-cache-dir poetry \
&& poetry install --no-root --no-directory
COPY . .
RUN poetry install --only main && poetry build --format=wheel
FROM base
LABEL maintainer="Kevin Foo <chfl4gs@qiling.io>"
COPY --from=builder /qiling /qiling
WORKDIR /qiling
RUN apt-get update \
&& apt-get install -y --no-install-recommends unzip apt-utils \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install --no-deps --no-cache-dir dist/*.whl \
&& rm -rf ./dist/
CMD ["bash"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/qilingframework/qiling.git
git@gitee.com:qilingframework/qiling.git
qilingframework
qiling
qiling
dev

搜索帮助