16 lines
417 B
Plaintext
16 lines
417 B
Plaintext
# Get the Python version of the base image from a build argument
|
|
ARG PYTHON_VERSION
|
|
FROM winamd64/python:$PYTHON_VERSION-windowsservercore
|
|
|
|
ARG WHEEL_NAME
|
|
ARG CONFTEST_NAME
|
|
ARG CIBW_TEST_REQUIRES
|
|
|
|
# Copy and install the Windows wheel
|
|
COPY $WHEEL_NAME $WHEEL_NAME
|
|
COPY $CONFTEST_NAME $CONFTEST_NAME
|
|
RUN pip install $env:WHEEL_NAME
|
|
|
|
# Install the testing dependencies
|
|
RUN pip install $env:CIBW_TEST_REQUIRES.split(" ")
|