Skip to content

Commit

Permalink
Remove pip cache
Browse files Browse the repository at this point in the history
  • Loading branch information
shauneccles committed Mar 6, 2021
1 parent f2a7c1f commit a68d232
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.9-slim

# Create python venv and add it to PATH
RUN python -m venv /ledfx/venv \
&& python -m pip install -U pip wheel setuptools
&& python -m pip install --no-cache-dir -U pip wheel setuptools
ENV PATH="/ledfx/venv/bin:$PATH"

# Install dependencies and ledfx, remove uneeded packages
Expand All @@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
portaudio19-dev \
# pulseaudio \
python3-dev && apt-get purge -y gcc python3-dev && apt-get clean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
RUN pip install ledfx-dev
RUN pip install --no-cache-dir ledfx-dev

# Add user `ledfx` and create home folder
RUN useradd --create-home ledfx
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-4stage
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM python:3.9-slim AS venv-image
# Create python venv and add it to PATH
RUN python -m venv /ledfx/venv
ENV PATH="/ledfx/venv/bin:$PATH"
RUN python -m pip install --upgrade pip wheel setuptools
RUN python -m pip install --no-cache-dir --upgrade pip wheel setuptools
# Install dependencies and ledfx, remove unneeded packages
RUN apt-get update && apt-get install -y --no-install-recommends \
alsa-utils \
Expand All @@ -32,7 +32,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
FROM compile-image AS build-image
COPY --from=venv-image /ledfx/venv /ledfx/venv
ENV PATH="/ledfx/venv/bin:$PATH"
RUN pip install git+https://github.com/LedFx/LedFx@dev
RUN pip install --no-cache-dir git+https://github.com/LedFx/LedFx@dev

# Create docker image from venv-image to build dist-image
#
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile-armv7
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ FROM arm32v7/python:3.9-slim AS venv-image
ARG VERSION="master"
RUN python -m venv /ledfx/venv
ENV PATH="/ledfx/venv/bin:$PATH"
RUN python -m pip install --upgrade pip wheel setuptools \
&& python -m pip install Cython
RUN python -m pip install --no-cache-dir --upgrade pip wheel setuptools \
&& python -m pip install --no-cache-dir Cython
# Install dependencies and ledfx, remove unneeded packages
RUN apt-get update && apt-get install -y --no-install-recommends \
alsa-utils \
Expand Down Expand Up @@ -36,7 +36,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
FROM compile-image AS build-image
ARG VERSION
ENV PATH="/ledfx/venv/bin:$PATH"
RUN pip install git+https://github.com/LedFx/LedFx@"${VERSION}"
RUN pip install --no-cache-dir git+https://github.com/LedFx/LedFx@"${VERSION}"


# Create arm32v7/python:3.9-slim - Dist Image
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.compile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ WORKDIR /ledfx
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libc-dev && apt-get clean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
RUN pip install ledfx-dev
RUN pip install --no-cache-dir ledfx-dev

0 comments on commit a68d232

Please sign in to comment.