Skip to content

Commit

Permalink
Dockerfile: Use requirements-dev for installation of libs
Browse files Browse the repository at this point in the history
Currently the versions are hardcoded. Such that we have a single source
of truth, copy the requirements file over and use it

Change-Id: I8c51ff7f5a7033c0ff5e55080a0283b865895207
  • Loading branch information
cianmcgrath committed Apr 26, 2024
1 parent 8b8498e commit 8404e98
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,11 @@
FROM python:3.11
LABEL maintainer="[email protected]"

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

0 comments on commit 8404e98

Please sign in to comment.