PathwayCommons / app-ui

Web UI for accessing Pathway Commons data
http://apps.pathwaycommons.org
MIT License
2 stars 16 forks source link

Docker: Enable run-time environmental variables to be picked up by client-side #1456

Closed jvwong closed 5 months ago

jvwong commented 5 months ago

If we build the client-side assets (i.e. static assets like JS) at Docker image build time, then we currently cannot successfully apply environemental variables (e.g. PC_URL) on the client at container run-time. In effect, they are hard-coded.

Enable environmental variables to be applied in the Docker container and applied at run-time on the client.

See https://github.com/PathwayCommons/app-ui/pull/1448/files#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557