Skip to content

Commit

Permalink
Align dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed May 29, 2021
1 parent 1e052bd commit 9cf2c22
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ENV FT_APP_ENV="docker"

# Prepare environment
RUN mkdir /freqtrade \
&& apt update \
&& apt install -y sudo \
&& apt-get update \
&& apt-get -y install sudo libatlas3-base curl sqlite3 libhdf5-serial-dev \
&& apt-get clean \
&& useradd -u 1000 -G sudo -U -m ftuser \
&& chown ftuser:ftuser /freqtrade \
Expand All @@ -22,10 +22,10 @@ WORKDIR /freqtrade

# Install dependencies
FROM base as python-deps
RUN apt-get update \
&& apt-get -y install curl build-essential libssl-dev git \
&& apt-get clean \
&& pip install --upgrade pip
RUN apt-get update \
&& apt-get -y install build-essential libssl-dev git libffi-dev libgfortran5 pkg-config cmake gcc \
&& apt-get clean \
&& pip install --upgrade pip

# Install TA-lib
COPY build_helpers/* /tmp/
Expand Down
6 changes: 5 additions & 1 deletion build_helpers/publish_docker_pi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ TAG_ORIG=$(echo "${BRANCH_NAME}" | sed -e "s/\//_/g")
TAG="${TAG_ORIG}_pi"

PI_PLATFORM="linux/arm/v7"
echo "Running for ${TAG_ORIG}"
echo "Running for ${TAG}"
CACHE_TAG=freqtradeorg/freqtrade_cache:${TAG}_cache

# Add commit and commit_message to docker container
Expand All @@ -34,6 +34,10 @@ fi

docker images

# Create multiarch image
# Make sure that all images contained here are pushed to github first.
# Otherwise installation might fail.

docker manifest create freqtradeorg/freqtrade:${TAG_ORIG} ${IMAGE_NAME}:${TAG_ORIG} ${IMAGE_NAME}:${TAG}
docker manifest push freqtradeorg/freqtrade:${TAG_ORIG}

Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENV FT_APP_ENV="docker"
# Prepare environment
RUN mkdir /freqtrade \
&& apt-get update \
&& apt-get -y install libatlas3-base curl sqlite3 libhdf5-serial-dev sudo \
&& apt-get -y install sudo libatlas3-base curl sqlite3 libhdf5-serial-dev \
&& apt-get clean \
&& useradd -u 1000 -G sudo -U -m ftuser \
&& chown ftuser:ftuser /freqtrade \
Expand All @@ -22,8 +22,8 @@ WORKDIR /freqtrade

# Install dependencies
FROM base as python-deps
RUN apt-get update \
&& apt-get -y install curl build-essential libssl-dev git libffi-dev libgfortran5 pkg-config cmake gcc \
RUN apt-get update \
&& apt-get -y install build-essential libssl-dev git libffi-dev libgfortran5 pkg-config cmake gcc \
&& apt-get clean \
&& pip install --upgrade pip

Expand Down
5 changes: 3 additions & 2 deletions docker/Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENV FT_APP_ENV="docker"
# Prepare environment
RUN mkdir /freqtrade \
&& apt-get update \
&& apt-get -y install libatlas3-base curl sqlite3 libhdf5-serial-dev sudo \
&& apt-get -y install sudo libatlas3-base curl sqlite3 libhdf5-serial-dev \
&& apt-get clean \
&& useradd -u 1000 -G sudo -U -m ftuser \
&& chown ftuser:ftuser /freqtrade \
Expand All @@ -22,7 +22,8 @@ WORKDIR /freqtrade

# Install dependencies
FROM base as python-deps
RUN apt-get -y install build-essential libssl-dev libffi-dev libgfortran5 \
RUN apt-get update \
&& apt-get -y install build-essential libssl-dev libffi-dev libgfortran5 \
&& apt-get clean \
&& pip install --upgrade pip \
&& echo "[global]\nextra-index-url=https://www.piwheels.org/simple" > /etc/pip.conf
Expand Down

0 comments on commit 9cf2c22

Please sign in to comment.