added pip cache

This commit is contained in:
John Lancaster
2023-04-20 23:49:31 -05:00
parent b355fb9b4f
commit 92fa257829

View File

@@ -3,8 +3,10 @@ FROM python:latest
ENV CONF=/conf ENV CONF=/conf
RUN mkdir $CONF RUN mkdir $CONF
COPY ./requirements.txt ${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 RUN pip install git+https://github.com/AppDaemon/appdaemon@dev