retro-go/Dockerfile
Alex Duchesne c80773ed1c rg_tool: Detect when serial library is missing and avoid double git call
- Serial isn't required for building, so we can ignore it
- Only populate PROJECT_VER with `git describe` if config.py is missing
2022-01-31 07:55:07 -05:00

18 lines
469 B
Docker

FROM espressif/idf:release-v4.1
WORKDIR /app
ADD . /app
# RUN pip install -r requirements.txt
# Apply patches
RUN cd /opt/esp/idf && \
patch --ignore-whitespace -p1 -i "/app/tools/patches/panic-hook (esp-idf 4.0 and 4.1).diff" && \
patch --ignore-whitespace -p1 -i "/app/tools/patches/sdcard-fix (esp-idf 4.0 and 4.1).diff"
# Build
RUN . /opt/esp/idf/export.sh && \
python rg_tool.py --target=odroid-go release && \
python rg_tool.py --target=mrgc-g32 release