Dockerfile 1.3 KB

1234567891011121314151617181920212223242526272829
  1. # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/python-3/.devcontainer/base.Dockerfile
  2. # [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6
  3. ARG VARIANT="3.9.0-buster"
  4. FROM python:${VARIANT}
  5. # [Option] Install Node.js
  6. ARG INSTALL_NODE="true"
  7. ARG NODE_VERSION="lts/*"
  8. RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
  9. # [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
  10. # COPY requirements.txt /tmp/pip-tmp/
  11. # RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
  12. # && rm -rf /tmp/pip-tmp
  13. # [Optional] Uncomment this section to install additional OS packages.
  14. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
  15. # && apt-get -y install --no-install-recommends <your-package-list-here>
  16. # [Optional] Uncomment this line to install global node packages.
  17. # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
  18. RUN pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
  19. RUN platformio update
  20. # To get the test platforms
  21. RUN pip install PyYaml
  22. #ENV PATH /code/buildroot/bin/:/code/buildroot/tests/:${PATH}