ihp.dockerfile 432 B

12345678910111213141516171819
  1. FROM nixos/nix
  2. COPY ./src /ihp
  3. WORKDIR /ihp
  4. # Add build dependencies
  5. RUN nix-env -i git cachix
  6. RUN cachix use digitallyinduced
  7. # Build
  8. RUN nix-shell -j auto --cores 0 --command "make build/bin/RunOptimizedProdServer"
  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 nix-shell -j auto --cores 0 --command "./build/bin/RunOptimizedProdServer"