From 07840d0748e248fc72815f510ccc64c9ed48caab Mon Sep 17 00:00:00 2001 From: Drikus Roor Date: Wed, 20 Dec 2023 11:58:03 +0100 Subject: [PATCH] config: Add script to compile requirements in one container instance --- scripts/compile-requirements | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/compile-requirements diff --git a/scripts/compile-requirements b/scripts/compile-requirements new file mode 100755 index 000000000..9f3f7f7ce --- /dev/null +++ b/scripts/compile-requirements @@ -0,0 +1,7 @@ +#!/bin/bash + +# Compile requirements for development and production in one container instance +docker compose run --rm server /bin/bash -c "\ +pip-compile --output-file=requirements/dev.txt requirements.in/dev.txt && \ +pip-compile --output-file=requirements/prod.txt requirements.in/prod.txt \ +"