When container is recreated, automatically run a dependency setup script #7338
-
I am finally getting around to setting up a semi-production, private I understand that the general approach is to build a custom Dockerfile. However .... 💡 Question: Rather than building my own I am using Docker Compose to add
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The only method that comes to my mind is to change the entrypoint to a script of your own that installs the dependencies and then executes the original entrypoint. And, we actually have an environment variable to make doing this easier: code-server/ci/release-image/entrypoint.sh Lines 21 to 25 in 47d6d3a |
Beta Was this translation helpful? Give feedback.
Actually you do not need to set
ENTRYPOINTD
, it defaults to${HOME}/entrypoint.d
, so you can mount your scripts there.code-server/ci/release-image/Dockerfile
Line 52 in 47d6d3a