From 92fa2578290e5b2ee18fb371a5ec1b5e34a6f9e3 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Thu, 20 Apr 2023 23:49:31 -0500 Subject: [PATCH] added pip cache --- .devcontainer/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 99d519c..9d96081 100755 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -3,8 +3,10 @@ FROM python:latest ENV CONF=/conf RUN mkdir $CONF - COPY ./requirements.txt ${CONF} -RUN find $CONF -name requirements.txt -type f -not -empty -exec pip3 install --upgrade -r {} \; +# RUN useradd --system --uid 1000 --create-home appdaemon +# USER appdaemon + +RUN --mount=type=cache,target=/root/.cache/pip pip install -r ${CONF}/requirements.txt RUN pip install git+https://github.com/AppDaemon/appdaemon@dev