Files
qiling/Dockerfile
T
2021-04-28 11:12:45 +08:00

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