diff --git a/Dockerfile b/Dockerfile index 130c47d..58b4b13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,14 @@ RUN apt-get update && apt-get upgrade -y \ && apt-get install -y git build-essential portaudio19-dev \ python3 python3-pip gcc wget \ && ln -s /usr/bin/python3 /usr/bin/python + +RUN mkdir -p /app && mkdir -p /app/pip_cache +ENV PIP_CACHE_DIR=/app/pip_cache + WORKDIR /app COPY . . -RUN pip install --no-cache-dir -r system/requirements/requirements_standalone.txt +RUN pip install --no-cache-dir --no-deps -r system/requirements/requirements_standalone.txt --cache-dir=/app/pip_cache + EXPOSE 7851 RUN chmod +x launch.sh ENTRYPOINT ["sh", "-c", "./launch.sh"] \ No newline at end of file