19 lines
438 B
Docker
19 lines
438 B
Docker
FROM python:3.14.5-slim-bookworm
|
|
|
|
ENV PLATFORMIO_CORE_DIR=/workspace/.platformio
|
|
ENV PATH="/root/.platformio/penv/bin:${PATH}"
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
git \
|
|
build-essential \
|
|
ca-certificates \
|
|
udev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN python -m pip install --no-cache-dir --upgrade pip \
|
|
&& pip install --no-cache-dir platformio
|
|
|
|
WORKDIR /workspace
|
|
|
|
CMD ["pio", "run"]
|