# syntax=docker/dockerfile:1 FROM thebluestbird/pica-environment:latest RUN \ apk add --no-cache \ gcc \ g++ \ nlohmann-json \ fcgi-dev \ cmake \ make \ mariadb-connector-c-dev ADD https://git.macaw.me/blue/pica/archive/main.tar.gz pica/ WORKDIR pica RUN tar -xvzf main.tar.gz && \ cd pica && \ mkdir build && \ cd build && \ cmake .. -D CMAKE_INSTALL_PREFIX=/usr && \ cmake --build . && \ mkdir install && \ DESTDIR=install cmake --install . FROM thebluestbird/pica-environment:latest COPY --from=0 /pica/pica/build/install / CMD ["/usr/bin/pica"]