diff --git a/.dockerignore b/.dockerignore index 49810fc35b..352336496f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -11,4 +11,8 @@ test_output .vscode .zenith integration_tests/.zenith -.mypy_cache \ No newline at end of file +.mypy_cache + +Dockerfile +.dockerignore + diff --git a/Dockerfile b/Dockerfile index 5747438272..b38bac4480 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ FROM zenithdb/build:buster AS pg-build WORKDIR /zenith COPY ./vendor/postgres vendor/postgres COPY ./Makefile Makefile +ENV BUILD_TYPE release RUN make -j $(getconf _NPROCESSORS_ONLN) -s postgres RUN rm -rf postgres_install/build