Skip to content

Commit

Permalink
Update Dockerfile CHOWN into COPY
Browse files Browse the repository at this point in the history
More efficient to chown while COPY for large stacks of files as per docker/for-linux#388
  • Loading branch information
adamzwakk committed Nov 28, 2021
1 parent e6afe73 commit 33e9bce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ RUN if [ "x$skip_dev_deps" = "x" ] ; then pip install -r requirements_dev.txt ;
COPY requirements.txt ./
RUN pip install -r requirements.txt

COPY . /app
COPY --from=frontend-builder /frontend/client/dist /app/client/dist
RUN chown -R redash /app
COPY --chown=redash . /app
COPY --from=frontend-builder --chown=redash /frontend/client/dist /app/client/dist
USER redash

ENTRYPOINT ["/app/bin/docker-entrypoint"]
Expand Down

0 comments on commit 33e9bce

Please sign in to comment.