oatpp-async-no-mp.dockerfile 680 B

12345678910111213141516171819202122232425262728293031
  1. FROM lganzzzo/ubuntu-cmake-mimalloc
  2. #---------------------------------------------------------------
  3. # install oatpp
  4. WORKDIR /test
  5. RUN git clone https://github.com/oatpp/oatpp
  6. WORKDIR /test/oatpp
  7. RUN git checkout afbafe447ff447db5ab227022eb4a568da97d16b
  8. WORKDIR /test/oatpp/build
  9. RUN cmake -DOATPP_DISABLE_ENV_OBJECT_COUNTERS=ON -DOATPP_DISABLE_POOL_ALLOCATIONS=ON -DCMAKE_BUILD_TYPE=Release -DOATPP_BUILD_TESTS=OFF ..
  10. RUN make install
  11. #---------------------------------------------------------------
  12. # build test app
  13. ADD src-async /test/src-async
  14. WORKDIR /test/src-async/build
  15. RUN cmake -DCMAKE_BUILD_TYPE=Release ..
  16. RUN make
  17. EXPOSE 8000 8000
  18. CMD ./oatpp-async-test