1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

docker: use $PYTHON variable

This commit is contained in:
Pavol Rusnak 2019-04-25 15:21:42 +02:00
parent 16dbe5f6f6
commit 0b9f4654bd
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -63,7 +63,9 @@ ENV PATH=/opt/$TOOLCHAIN_LONGVER/bin:$PATH
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
# use zipfile module to extract files world-readable
RUN python -m zipfile -e "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" /usr/local && chmod 755 /usr/local/bin/protoc
ENV PYTHON=python
RUN $PYTHON -m zipfile -e "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" /usr/local && chmod 755 /usr/local/bin/protoc
ENV WORKON_HOME=/tmp/.venvs
@ -71,6 +73,6 @@ ENV WORKON_HOME=/tmp/.venvs
RUN pip install pipenv
RUN python --version
RUN $PYTHON --version
RUN pip --version
RUN pipenv --version