1- FROM python:3.13.5-slim-bookworm as base
1+ FROM python:3.13.5-slim-bookworm AS base
22
33# Setup env
4- ENV LANG C.UTF-8
5- ENV LC_ALL C.UTF-8
6- ENV PYTHONDONTWRITEBYTECODE 1
7- ENV PYTHONFAULTHANDLER 1
4+ ENV LANG= C.UTF-8
5+ ENV LC_ALL= C.UTF-8
6+ ENV PYTHONDONTWRITEBYTECODE= 1
7+ ENV PYTHONFAULTHANDLER= 1
88ENV PATH=/home/ftuser/.local/bin:$PATH
99ENV FT_APP_ENV="docker"
1010
@@ -21,7 +21,7 @@ RUN mkdir /freqtrade \
2121WORKDIR /freqtrade
2222
2323# Install dependencies
24- FROM base as python-deps
24+ FROM base AS python-deps
2525RUN apt-get update \
2626 && apt-get -y install build-essential libssl-dev git libffi-dev libgfortran5 pkg-config cmake gcc \
2727 && apt-get clean \
@@ -30,7 +30,7 @@ RUN apt-get update \
3030# Install TA-lib
3131COPY build_helpers/* /tmp/
3232RUN cd /tmp && /tmp/install_ta-lib.sh && rm -r /tmp/*ta-lib*
33- ENV LD_LIBRARY_PATH /usr/local/lib
33+ ENV LD_LIBRARY_PATH= /usr/local/lib
3434
3535# Install dependencies
3636COPY --chown=ftuser:ftuser requirements.txt requirements-hyperopt.txt /freqtrade/
@@ -39,9 +39,9 @@ RUN pip install --user --no-cache-dir "numpy<3.0" \
3939 && pip install --user --no-cache-dir -r requirements-hyperopt.txt
4040
4141# Copy dependencies to runtime-image
42- FROM base as runtime-image
42+ FROM base AS runtime-image
4343COPY --from=python-deps /usr/local/lib /usr/local/lib
44- ENV LD_LIBRARY_PATH /usr/local/lib
44+ ENV LD_LIBRARY_PATH= /usr/local/lib
4545
4646COPY --from=python-deps --chown=ftuser:ftuser /home/ftuser/.local /home/ftuser/.local
4747
0 commit comments