urweb.dockerfile 476 B

123456789101112
  1. FROM ubuntu:24.04
  2. ADD ./ /urweb
  3. WORKDIR /urweb
  4. RUN apt-get update -yqq && apt-get install -yqq sudo git gcc make autoconf automake libtool mlton libpq-dev libssl-dev uthash-dev libicu-dev && git clone https://github.com/urweb/urweb.git && cd urweb && ./autogen.sh && ./configure && make -j && sudo make install
  5. RUN urweb -db "dbname=hello_world user=benchmarkdbuser password=benchmarkdbpass host=tfb-database" bench
  6. EXPOSE 8080
  7. CMD ./bench.exe -q -k -t $((2 * $(nproc)))