Skip to content

Commit

Permalink
Remove more dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Jun 26, 2024
1 parent 3c679b7 commit 4e4db3f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ RUN apt-get update && apt-get install --no-install-recommends -y -q \
curl \
gcc \
git \
libcairo2-dev \
libev-dev \
jq \
python3 \
python3-dev \
python3-pip \
python3-pyqt5 \
python3-pyqt5.sip && \
curl -sSL https://install.python-poetry.org | python3 - --version "$(jq -r .constraints.poetry /root/renovate.json)" && \
poetry config virtualenvs.create false && \
python3 -m pip install --no-cache-dir --upgrade pip
Expand All @@ -34,8 +31,7 @@ COPY poetry.lock pyproject.toml README.md /gamutrf/
# dependency install is cached for faster rebuild, if only gamutrf source changed.
RUN if [ "${POETRY_CACHE}" != "" ] ; then echo using cache "${POETRY_CACHE}" ; poetry source add --priority=default local "${POETRY_CACHE}" ; fi
# TODO: handle caching
RUN for i in bjoern falcon-cors gpsd-py3 RPi.GPIO pycairo ; do poetry run pip install --no-cache-dir "$i"=="$(grep $i pyproject.toml | grep -Eo '\"[0-9\.]+' | sed 's/\"//g')" || exit 1 ; done
RUN if [ "$(arch)" == "aarch64" ] ; then poetry run pip install --no-cache-dir RPi.GPIO=="$(grep RPi.GPIO pyproject.toml | grep -Eo '\"[0-9\.]+' | sed 's/\"//g')" ; fi
RUN for i in bjoern falcon-cors gpsd-py3 ; do poetry run pip install --no-cache-dir "$i"=="$(grep $i pyproject.toml | grep -Eo '\"[0-9\.]+' | sed 's/\"//g')" || exit 1 ; done
RUN poetry install --no-interaction --no-ansi --no-dev --no-root
COPY gamutrf gamutrf/
COPY bin bin/
Expand All @@ -61,7 +57,6 @@ RUN if [ "$(arch)" = "x86_64" ] ; then /root/install-nv.sh ; fi && \
libboost-iostreams1.74.0 \
libboost-program-options1.74.0 \
libboost-thread1.74.0 \
libcairo2 \
libev4 \
libfftw3-3 \
libgl1 \
Expand All @@ -70,8 +65,6 @@ RUN if [ "$(arch)" = "x86_64" ] ; then /root/install-nv.sh ; fi && \
libopencv-core4.5d \
libopencv-imgcodecs4.5d \
libopencv-imgproc4.5d \
python3-pyqt5 \
python3-pyqt5.sip \
librtlsdr0 \
libspdlog1 \
libuhd4.1.0 \
Expand Down

0 comments on commit 4e4db3f

Please sign in to comment.