Tasmota/lib/lib_div/arduino-vid6608/Dockerfile
Peter Petrovich e5a6cad5e3
Add support for Analog Gauges (#24153)
* Add vid6608 library

* Add vid6608 pin definition (only GB for now)

* Try to debug GPIO - does not work

* First working version

* Trim whitespaces

* Add missing library; JSON response, Codeowners

* Fix blocking loop in esp8266

* Update language strings

* Format inline readme for vid driver

* Add example define in my_user_config.h

* Clanup changed VS Code config files

* Fix duplicated language values in en_GB.h
2025-11-25 11:58:13 +01:00

44 lines
907 B
Docker

# Dockerfile to build platformio
FROM petrows/arduino-vid6608:latest
RUN <<PKG
set -e
apt-get -qq update
apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-venv \
apt-get -qq clean
rm -rf /var/lib/apt/lists/*
PKG
# Python virtual env
ENV VIRTUAL_ENV=/var/venv
RUN mkdir -p -m 777 $VIRTUAL_ENV
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Default env
ENV HOME=/opt/home
RUN mkdir -p -m 777 $HOME
RUN pip install platformio==6.1.18
# Copy config file and enforce deps installation
COPY platformio.ini /tmp/
RUN <<PIO
cd /tmp/
# Install common packages
platformio pkg install
# Install required tools
platformio pkg install -t platformio/tool-cppcheck
platformio pkg install -t platformio/tool-clangtidy
# Cleanup
rm -rf /tmp/*
# Allow this image to run under non-root
chmod -R 777 $HOME
PIO
WORKDIR /app