ihp.dockerfile 367 B

12345678910111213141516171819
  1. FROM nixos/nix
  2. COPY ./src /ihp
  3. WORKDIR /ihp
  4. # Add build dependencies
  5. RUN nix-env -i cachix
  6. RUN cachix use digitallyinduced
  7. # Build
  8. RUN nix-build -j auto --cores 0
  9. # Setup
  10. ENV DATABASE_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world
  11. ENV PORT=8080
  12. EXPOSE 8080
  13. # Run
  14. CMD ./result/bin/RunProdServer +RTS -A32m -N$(nproc) -qn2 -M2G -RTS