Skip to content

Commit

Permalink
moving COPY after pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jan 22, 2024
1 parent 4519999 commit f9096a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,15 @@ RUN --mount=type=bind,target=./requirements/local.txt,src=./requirements/local.t
--mount=type=cache,target=/root/.cache/pip \
pip install -r requirements/local.txt

COPY --chown=superset:superset --from=superset-node /app/superset/static/assets superset/static/assets
## Lastly, let's install superset itself
COPY --chown=superset:superset superset superset
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -e . \
&& flask fab babel-compile --target superset/translations \
&& chown -R superset:superset superset/translations

COPY --chown=superset:superset --from=superset-node /app/superset/static/assets superset/static/assets
## Lastly, let's install superset itself
COPY --chown=superset:superset superset superset

COPY --chmod=755 ./docker/run-server.sh /usr/bin/
USER superset

Expand Down

0 comments on commit f9096a7

Please sign in to comment.