pica now has mariadb client in environment, and a composition with mariadb to run it

This commit is contained in:
Blue 2023-12-07 19:15:27 -03:00
parent 7a54d5025f
commit d516963219
Signed by: blue
GPG key ID: 9B203B252A63EE38
11 changed files with 110 additions and 16 deletions

View file

@ -9,18 +9,17 @@ RUN \
fcgi-dev \
cmake \
make \
curl \
&& \
mkdir build && \
cd /build && \
curl -o pica.tar.gz https://git.macaw.me/blue/pica/archive/main.tar.gz && \
tar -xvzf pica.tar.gz && \
cd pica && \
mkdir build && \
cd build && \
cmake .. && \
cmake --build .
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 .
FROM thebluestbird/pica-environment:latest
COPY --from=0 /build/pica/build/pica /usr/bin/
COPY --from=0 /pica/pica/build/pica /usr/bin/
CMD ["/usr/bin/pica"]