Skip to content

Commit 78a4792

Browse files
committed
chore: Update dockerfile syntax
1 parent e5a2011 commit 78a4792

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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
88
ENV PATH=/home/ftuser/.local/bin:$PATH
99
ENV FT_APP_ENV="docker"
1010

@@ -21,7 +21,7 @@ RUN mkdir /freqtrade \
2121
WORKDIR /freqtrade
2222

2323
# Install dependencies
24-
FROM base as python-deps
24+
FROM base AS python-deps
2525
RUN 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
3131
COPY build_helpers/* /tmp/
3232
RUN 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
3636
COPY --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
4343
COPY --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

4646
COPY --from=python-deps --chown=ftuser:ftuser /home/ftuser/.local /home/ftuser/.local
4747

docker/Dockerfile.armhf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM python:3.11.13-slim-bookworm as base
1+
FROM python:3.11.13-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
88
ENV PATH=/home/ftuser/.local/bin:$PATH
99
ENV FT_APP_ENV="docker"
1010

@@ -22,7 +22,7 @@ RUN mkdir /freqtrade \
2222
WORKDIR /freqtrade
2323

2424
# Install dependencies
25-
FROM base as python-deps
25+
FROM base AS python-deps
2626
RUN apt-get update \
2727
&& apt-get -y install build-essential libssl-dev libffi-dev libgfortran5 pkg-config cmake gcc \
2828
&& apt-get clean \
@@ -39,9 +39,9 @@ RUN pip install --user --no-cache-dir "numpy<3.0" \
3939
&& pip install --user --no-cache-dir -r requirements.txt
4040

4141
# Copy dependencies to runtime-image
42-
FROM base as runtime-image
42+
FROM base AS runtime-image
4343
COPY --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

4646
COPY --from=python-deps --chown=ftuser:ftuser /home/ftuser/.local /home/ftuser/.local
4747

0 commit comments

Comments
 (0)