From a82738e0bce27e8a931f5ba0e9c1ec98cdc5978d Mon Sep 17 00:00:00 2001 From: Azulinho Date: Fri, 30 Dec 2022 17:25:09 +0000 Subject: [PATCH] docker image cleanups --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ffddd25..efe910b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,7 +47,8 @@ RUN cd /tmp \ && cd ta-lib \ && eatmydata ./configure --prefix=/usr \ && eatmydata make \ - && eatmydata make install + && eatmydata make install \ + && rm -rf /tmp/ta-lib* USER cryptobot ENV HOME /cryptobot WORKDIR /cryptobot @@ -55,12 +56,14 @@ ADD .python-version . RUN curl https://pyenv.run | eatmydata bash ENV PYENV_ROOT="$HOME/.pyenv" ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims/:$PATH" -RUN CONFIGURE_OPTS="--enable-shared --enable-optimizations --with-lto --with-pgo" eatmydata pyenv install +RUN CONFIGURE_OPTS="--enable-shared --enable-optimizations --with-lto --with-pgo" eatmydata pyenv install \ + && rm -f /tmp/python-build*.log RUN eatmydata python -m venv /cryptobot/.venv ADD requirements.txt . RUN eatmydata /cryptobot/.venv/bin/pip install --upgrade pip setuptools wheel # pyenv is failling to compile isal without setting C_INCLUDE_PATH -RUN eatmydata /cryptobot/.venv/bin/pip install -r requirements.txt +RUN eatmydata /cryptobot/.venv/bin/pip install -r requirements.txt && \ + rm -rf /tmp/* ADD lib/ lib/ ADD utils/automated-backtesting.py utils/automated-backtesting.py