From f0918842e6772c7ba2622a8510bdf12e8d81261d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=BBuraw?= <9116238+krzysztofzuraw@users.noreply.github.com> Date: Thu, 17 Nov 2022 14:51:58 +0100 Subject: [PATCH] Update docker copy syntax & readme runtime API URL change (#2597) --- Dockerfile | 12 ++++++------ README.md | 8 +++++++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef81e8073..4ef123497 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,12 +7,12 @@ COPY nginx/ nginx/ COPY assets/ assets/ COPY locale/ locale/ COPY testUtils testUtils/ -COPY codegen.yml . -COPY webpack.config.js . -COPY tsconfig.json . -COPY *.d.ts . -COPY schema.graphql . -COPY introspection.json . +COPY codegen.yml ./ +COPY webpack.config.js ./ +COPY tsconfig.json ./ +COPY *.d.ts ./ +COPY schema.graphql ./ +COPY introspection.json ./ COPY src/ src/ ARG API_URI diff --git a/README.md b/README.md index f24559e44..ce2e6a163 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,13 @@ docker run --publish 8080:80 --env "API_URL=" saleor-dashboard Enter `http://localhost:8080/` to use dashboard. -##### Usage with Sentry adapter: +If you want to dynamically change `API_URL` in runtime you can use (assuming you have running container named `saleor-dashboard`): + +```shell +docker exec -it -e API_URL=NEW_URL saleor-dashboard /docker-entrypoint.d/50-replace-api-url.sh +``` + +### Usage with Sentry adapter Sentry is used as the default tracker so no changes in code are necessary and the configuration is done via environment variables.