Skip to content

Commit

Permalink
docker image cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Azulinho committed Dec 31, 2022
1 parent 5e04050 commit a82738e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,23 @@ 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
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
Expand Down

0 comments on commit a82738e

Please sign in to comment.