From 47c5ad0856996b65d8e918786e8dbce06ef18d8a Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 22 May 2024 15:30:59 +0800 Subject: [PATCH] chore: update Dockerfile --- Dockerfile | 2 ++ config.js | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 config.js diff --git a/Dockerfile b/Dockerfile index 6e1b20b..b5a9a69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ COPY nginx.conf /etc/nginx/nginx.conf.template COPY dist /var/www/public +COPY config.js /var/www/public + COPY docker-entrypoint.sh /docker-entrypoint.sh RUN chmod +x /docker-entrypoint.sh diff --git a/config.js b/config.js new file mode 100644 index 0000000..64157ba --- /dev/null +++ b/config.js @@ -0,0 +1,4 @@ +window._env_ = { + API_URL: "", + API_OFFICE_URL: "", +};