diff --git a/Dockerfile b/Dockerfile index 78d7f681..f2bf3475 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,18 +5,11 @@ FROM python:3.11 LABEL maintainer="cvaas-dev@arista.com" +WORKDIR / +COPY ./requirements*.txt . + # Workaround for https://github.com/yaml/pyyaml/issues/724 -RUN python -m pip install --no-cache-dir "cython<3.0.0" && \ - pip install --no-cache-dir --no-build-isolation pyyaml==6.0.1 +RUN python -m pip install --no-cache-dir "cython<3.0.0" # hadolint ignore=DL3059 -RUN python -m pip install --no-cache-dir \ - msgpack==1.0.3 \ - cryptography==42.0.4 \ - protobuf==4.22.5 \ - numpy==1.22.3 \ - pytest==7.1.2 \ - grpcio==1.53.0 \ - grpcio-tools==1.53.0 \ - flake8==3.8.4 \ - mypy==0.981 +RUN python -m pip install --no-cache-dir -r requirements.txt -r requirements-dev.txt