Use COPY --chmod to remove duplicated layer.

GITHUB_PR_NUMBER: 9687
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9687

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9407
Co-authored-by: Greg Schofield <3594838+gscho@users.noreply.github.com>
GitOrigin-RevId: 1d3a402cce66d01c2c85ee3b0b46ac6b4ce793c7
This commit is contained in:
hasura-bot 2023-06-08 04:23:43 +05:30
parent dc7a1f2270
commit d4263d286a
2 changed files with 2 additions and 6 deletions

View File

@ -18,9 +18,7 @@ RUN mkdir -p /.hasura \
ENV HASURA_GRAPHQL_SHOW_UPDATE_NOTIFICATION=false
COPY docker-entrypoint.sh /bin/
COPY hasura-cli /bin/hasura-cli
RUN chmod +x /bin/hasura-cli
COPY --chmod=+x hasura-cli /bin/hasura-cli
# set an env var to let the cli know that
# it is running in server environment

View File

@ -18,9 +18,7 @@ RUN mkdir -p /.hasura \
ENV HASURA_GRAPHQL_SHOW_UPDATE_NOTIFICATION=false
COPY docker-entrypoint.sh /bin/
COPY hasura-cli /bin/hasura-cli
RUN chmod +x /bin/hasura-cli
COPY --chmod=+x hasura-cli /bin/hasura-cli
# set an env var to let the cli know that
# it is running in server environment