added pip cache
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user