Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM buildpack-deps:buster
- ARG VERSION=master
- ARG DEBIAN_FRONTEND=noninteractive
- ENV PATH /usr/local/bin:$PATH
- ENV KENDRYTE_VERSION 8.2.0-20190409
- RUN apt-get update \
- && apt-get install -y make unrar-free autoconf automake libtool gcc g++ gperf \
- flex bison texinfo gawk ncurses-dev libexpat-dev python3-dev python3 python3-pip \
- sed git unzip bash help2man wget bzip2 build-essential libtool cmake
- RUN apt-get clean \
- && rm -rf /var/lib/apt/lists/* \
- && useradd micropython
- RUN mkdir /opt/kendryte-toolchain
- RUN chmod 775 /opt/kendryte-toolchain
- RUN wget -O /tmp/kendryte-toolchain-ubuntu-amd64-$KENDRYTE_VERSION.tar.xz http://dl.cdn.sipeed.com/kendryte-toolchain-ubuntu-amd64-$KENDRYTE_VERSION.tar.xz
- RUN tar -Jxvf /tmp/kendryte-toolchain-ubuntu-amd64-$KENDRYTE_VERSION.tar.xz -C /opt \
- && rm /tmp/kendryte-toolchain-ubuntu-amd64-$KENDRYTE_VERSION.tar.xz
- RUN update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
- RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 2
- # WORKDIR /usr/src/app
- # RUN pip install pyserial
- COPY requirements.txt ./
- RUN pip3 install --no-cache-dir --requirement ./requirements.txt
- RUN pip3 install --upgrade pip
- USER micropython
- ENV PATH=/opt/kendryte-toolchain/bin:$PATH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement