2023-11-30 23:38:46 +00:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
|
|
|
|
FROM thebluestbird/pica-environment:latest
|
|
|
|
RUN \
|
|
|
|
apk add --no-cache \
|
|
|
|
gcc \
|
|
|
|
g++ \
|
|
|
|
nlohmann-json \
|
|
|
|
fcgi-dev \
|
|
|
|
cmake \
|
|
|
|
make \
|
2023-12-07 22:15:27 +00:00
|
|
|
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 .. && \
|
|
|
|
cmake --build .
|
2023-11-30 23:38:46 +00:00
|
|
|
|
|
|
|
FROM thebluestbird/pica-environment:latest
|
2023-12-07 22:15:27 +00:00
|
|
|
COPY --from=0 /pica/pica/build/pica /usr/bin/
|
2023-11-30 23:38:46 +00:00
|
|
|
CMD ["/usr/bin/pica"]
|