diff --git a/Dockerfile b/Dockerfile index 64cb72a21..4304729c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM python:3.13.5-slim-bookworm as base +FROM python:3.13.5-slim-bookworm AS base # Setup env -ENV LANG C.UTF-8 -ENV LC_ALL C.UTF-8 -ENV PYTHONDONTWRITEBYTECODE 1 -ENV PYTHONFAULTHANDLER 1 +ENV LANG=C.UTF-8 +ENV LC_ALL=C.UTF-8 +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONFAULTHANDLER=1 ENV PATH=/home/ftuser/.local/bin:$PATH ENV FT_APP_ENV="docker" @@ -21,7 +21,7 @@ RUN mkdir /freqtrade \ WORKDIR /freqtrade # Install dependencies -FROM base as python-deps +FROM base AS python-deps RUN apt-get update \ && apt-get -y install build-essential libssl-dev git libffi-dev libgfortran5 pkg-config cmake gcc \ && apt-get clean \ @@ -30,7 +30,7 @@ RUN apt-get update \ # Install TA-lib COPY build_helpers/* /tmp/ RUN cd /tmp && /tmp/install_ta-lib.sh && rm -r /tmp/*ta-lib* -ENV LD_LIBRARY_PATH /usr/local/lib +ENV LD_LIBRARY_PATH=/usr/local/lib # Install dependencies COPY --chown=ftuser:ftuser requirements.txt requirements-hyperopt.txt /freqtrade/ @@ -39,9 +39,9 @@ RUN pip install --user --no-cache-dir "numpy<3.0" \ && pip install --user --no-cache-dir -r requirements-hyperopt.txt # Copy dependencies to runtime-image -FROM base as runtime-image +FROM base AS runtime-image COPY --from=python-deps /usr/local/lib /usr/local/lib -ENV LD_LIBRARY_PATH /usr/local/lib +ENV LD_LIBRARY_PATH=/usr/local/lib COPY --from=python-deps --chown=ftuser:ftuser /home/ftuser/.local /home/ftuser/.local diff --git a/docker/Dockerfile.armhf b/docker/Dockerfile.armhf index a7edd5e76..9b659ae7d 100644 --- a/docker/Dockerfile.armhf +++ b/docker/Dockerfile.armhf @@ -1,10 +1,10 @@ -FROM python:3.11.13-slim-bookworm as base +FROM python:3.11.13-slim-bookworm AS base # Setup env -ENV LANG C.UTF-8 -ENV LC_ALL C.UTF-8 -ENV PYTHONDONTWRITEBYTECODE 1 -ENV PYTHONFAULTHANDLER 1 +ENV LANG=C.UTF-8 +ENV LC_ALL=C.UTF-8 +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONFAULTHANDLER=1 ENV PATH=/home/ftuser/.local/bin:$PATH ENV FT_APP_ENV="docker" @@ -22,7 +22,7 @@ RUN mkdir /freqtrade \ WORKDIR /freqtrade # Install dependencies -FROM base as python-deps +FROM base AS python-deps RUN apt-get update \ && apt-get -y install build-essential libssl-dev libffi-dev libgfortran5 pkg-config cmake gcc \ && apt-get clean \ @@ -39,9 +39,9 @@ RUN pip install --user --no-cache-dir "numpy<3.0" \ && pip install --user --no-cache-dir -r requirements.txt # Copy dependencies to runtime-image -FROM base as runtime-image +FROM base AS runtime-image COPY --from=python-deps /usr/local/lib /usr/local/lib -ENV LD_LIBRARY_PATH /usr/local/lib +ENV LD_LIBRARY_PATH=/usr/local/lib COPY --from=python-deps --chown=ftuser:ftuser /home/ftuser/.local /home/ftuser/.local