- FROM buildpack-deps:focal
- RUN apt update -yqq
- RUN apt install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev
- COPY ./ ./
- ENV COMMIT=db7562dd6a58a66b895c4fca53d10bf4b7463536
- RUN wget https://raw.githubusercontent.com/matt-42/lithium/$COMMIT/single_headers/lithium_pgsql.hh
- RUN wget https://raw.githubusercontent.com/matt-42/lithium/$COMMIT/single_headers/lithium_http_backend.hh
- RUN g++ -DTFB_PGSQL -O3 -DNDEBUG -march=native -std=c++17 ./lithium.cc -I/usr/include/postgresql -lpthread -lpq -lboost_context -o /lithium_tbf
- CMD /lithium_tbf tfb-database 8080
|