mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
31 lines
592 B
Docker
31 lines
592 B
Docker
FROM python:3.8-slim AS builder
|
|
|
|
LABEL maintainer="Kevin Foo <[email protected]>"
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y upgrade \
|
|
&& apt-get install -y --no-install-recommends cmake build-essential gcc git
|
|
|
|
COPY . /qiling
|
|
|
|
RUN cd /qiling \
|
|
&& pip wheel . -w wheels
|
|
|
|
FROM python:3.8-slim AS base
|
|
|
|
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 wheels/*.whl \
|
|
&& rm -rf wheels
|
|
|
|
ENV HOME /qiling
|
|
|
|
CMD bash
|