Increase possible caching on docker file creation

This commit is contained in:
Philipp Grathwohl 2021-12-03 00:35:45 +01:00
parent 0c380d5912
commit 623711e772
2 changed files with 10 additions and 2 deletions

View file

@ -32,6 +32,10 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel
# Install craftbeerpi requirements for better caching
COPY --chown=craftbeerpi ./requirements.txt /cbpi-src/
RUN pip3 install --no-cache-dir -r /cbpi-src/requirements.txt
# Install craftbeerpi from source # Install craftbeerpi from source
COPY --chown=craftbeerpi . /cbpi-src COPY --chown=craftbeerpi . /cbpi-src
RUN pip3 install --no-cache-dir /cbpi-src RUN pip3 install --no-cache-dir /cbpi-src

View file

@ -13,6 +13,10 @@ pyfiglet==0.8.post1
pandas==1.1.5 pandas==1.1.5
shortuuid==1.0.1 shortuuid==1.0.1
tabulate==0.8.7 tabulate==0.8.7
numpy==1.20.3
cbpi4ui cbpi4ui
click click==7.1.2
asyncio-mqtt importlib_metadata==4.8.2
asyncio-mqtt
psutil==5.8.0
zipp>=0.5