Skip to content

Commit d01ca8b

Browse files
committed
chore: update Dockerfile
1 parent 47c5ad0 commit d01ca8b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ COPY nginx.conf /etc/nginx/nginx.conf.template
66

77
COPY dist /var/www/public
88

9-
COPY config.js /var/www/public
9+
COPY config.js.template /var/www/public/config.js.template
1010

1111
COPY docker-entrypoint.sh /docker-entrypoint.sh
1212
RUN chmod +x /docker-entrypoint.sh

config.js config.js.template

File renamed without changes.

docker-entrypoint.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
22
set -e
3-
envsubst < /var/www/public/config.js > /var/www/public/config.js
3+
export API_URL=
4+
export API_OFFICE_URL=
5+
envsubst '${API_URL} ${API_OFFICE_URL}' < /var/www/public/config.js.template > /var/www/public/config.js
6+
cat /var/www/public/config.js
47
exec "$@"

0 commit comments

Comments
 (0)