mirror of
https://github.com/oatpp/oatpp-postgresql.git
synced 2024-12-03 03:00:01 +08:00
fe7b1d525c
* Setup CI
26 lines
367 B
Docker
26 lines
367 B
Docker
FROM lganzzzo/alpine-cmake:latest
|
|
|
|
RUN apk update
|
|
|
|
RUN apk add postgresql-dev
|
|
|
|
WORKDIR /module
|
|
|
|
COPY ./cmake cmake
|
|
COPY ./src src
|
|
COPY ./test test
|
|
COPY ./utility utility
|
|
COPY ./CMakeLists.txt CMakeLists.txt
|
|
|
|
WORKDIR /module/utility
|
|
|
|
RUN ./install-oatpp-modules.sh
|
|
|
|
WORKDIR /module/build
|
|
|
|
ARG PG_HOST=postgres
|
|
RUN cmake ..
|
|
RUN make
|
|
|
|
ENTRYPOINT ["./test/module-tests"]
|