diff --git a/template_sources/dockerfiles/{% if application_type != 'Minimal' %}Dockerfile{% endif %}.j2 b/template_sources/dockerfiles/{% if application_type != 'Minimal' %}Dockerfile{% endif %}.j2 index 0269fa0..4327921 100644 --- a/template_sources/dockerfiles/{% if application_type != 'Minimal' %}Dockerfile{% endif %}.j2 +++ b/template_sources/dockerfiles/{% if application_type != 'Minimal' %}Dockerfile{% endif %}.j2 @@ -49,12 +49,12 @@ RUN curl -fsSL https://pixi.sh/install.sh | sh ENV PATH="/root/.pixi/bin:${PATH}" RUN pixi install -e production SHELL [ "pixi", "run", "-e", "production" ] -ENTRYPOINT [ "pixi", "run", "-e", "production", "--manifest-path", "/src/pyproject.toml" ] +ENTRYPOINT [] RUN pixi add --pypi supervisor RUN scripts/generate_static_client.sh -RUN chmod og+rwX -R /src +RUN chmod og+rwX -R /root /src CMD [ "supervisord" ] {%- endif -%} diff --git a/template_sources/xml/tool.xml.j2 b/template_sources/xml/tool.xml.j2 index 3ab4aad..20dd54b 100644 --- a/template_sources/xml/tool.xml.j2 +++ b/template_sources/xml/tool.xml.j2 @@ -19,7 +19,7 @@ app_entry >(tee -a $output) 2> >(tee -a $output >&2) + {% if application_type in ['Nova Application', 'Tutorial'] and framework == 'Trame' %}pixi run -e production -m /src/pyproject.toml supervisord > >(tee -a $output) 2> >(tee -a $output >&2) {% elif application_type == 'Minimal' %} echo "Container ran successfully." {% else %}python3.10 -m {{ python_package | replace('-', '_') }} > >(tee -a $output) 2> >(tee -a $output >&2){% endif %} ]]>