Skip to content

Commit

Permalink
chore: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed May 22, 2024
1 parent 47c5ad0 commit d01ca8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY nginx.conf /etc/nginx/nginx.conf.template

COPY dist /var/www/public

COPY config.js /var/www/public
COPY config.js.template /var/www/public/config.js.template

COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
Expand Down
File renamed without changes.
5 changes: 4 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
set -e
envsubst < /var/www/public/config.js > /var/www/public/config.js
export API_URL=
export API_OFFICE_URL=
envsubst '${API_URL} ${API_OFFICE_URL}' < /var/www/public/config.js.template > /var/www/public/config.js
cat /var/www/public/config.js
exec "$@"

0 comments on commit d01ca8b

Please sign in to comment.