forked from ApeWorX/ape
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (19 loc) · 714 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (19 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#---------------------------------------------------------------------------------------------
# See LICENSE in the project root for license information.
#---------------------------------------------------------------------------------------------
ARG SLIM_IMAGE
ARG PYTHON_VERSION="3.11"
FROM python:${PYTHON_VERSION} AS builder
WORKDIR /wheels
RUN pip install --upgrade pip \
&& pip install wheel
COPY . .
COPY ./recommended-plugins.txt ./recommended-plugins.txt
RUN pip wheel .[recommended-plugins] --wheel-dir=/wheels
FROM ${SLIM_IMAGE} AS ape_slim
USER root
COPY --from=builder /wheels/*.whl /wheels/
RUN pip install --upgrade pip
RUN pip install /wheels/*.whl
USER harambe
RUN ape --version