Skip to content

Commit

Permalink
fix: copy files before running setup_script (#3713)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnphm authored Mar 28, 2023
1 parent 7b18ebb commit 337b446
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ COPY --chown={{ bento__user }}:{{ bento__user }} ./env/python ./env/python/
{% set __pip_cache__ = common.mount_cache("/root/.cache/pip") %}
# install python packages with install.sh
{% call common.RUN(__enable_buildkit__) -%} {{ __pip_cache__ }} {% endcall -%} bash -euxo pipefail {{ __install_python_scripts__ }}
COPY --chown={{ bento__user }}:{{ bento__user }} . ./
{% if __options__setup_script is not none %}
{% set __setup_script__ = expands_bento_path("env", "docker", "setup_script", bento_path=bento__path) %}
ADD ./env/docker/setup_script {{ __setup_script__ }}
Expand All @@ -72,8 +73,6 @@ RUN {{ __setup_script__ }}
{% endif %}
{% endblock %}

COPY --chown={{ bento__user }}:{{ bento__user }} . ./

# Block SETUP_BENTO_ENTRYPOINT
{% block SETUP_BENTO_ENTRYPOINT %}
# Default port for BentoServer
Expand Down

0 comments on commit 337b446

Please sign in to comment.