ln -sf in the end

This commit is contained in:
Roman Davydov
2022-11-18 00:20:24 +03:00
committed by GitHub
parent d59880cb0a
commit 64fdea3439

View File

@@ -10,6 +10,8 @@ ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
RUN pip install --upgrade pip
ARG TARGETPLATFORM
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --fix-missing --no-install-recommends \
gcc \
@@ -26,6 +28,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --fix-missing --no-ins
&& if [ "${BUILDX_QEMU_ENV}" = "true" ] && [ "$(getconf LONG_BIT)" = "32" ]; then \
pip install -U cryptography==3.3.2; \
fi \
&& if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
apt-get -y install python3-pandas; \
sed -i '/pandas/d' requirements.txt; \
fi \
&& pip install -r requirements.txt \
&& pip cache purge \
&& apt-get remove -y gcc rustc \
@@ -33,7 +39,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --fix-missing --no-ins
&& apt-get autoclean -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /usr/share/doc/*
&& rm -rf /usr/share/doc/* \
&& if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
ln -sf /usr/bin/python3.7 /usr/local/bin/python; \
fi
ADD ./TwitchChannelPointsMiner ./TwitchChannelPointsMiner
ENTRYPOINT [ "python", "run.py" ]