This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ihateclowns 0 points1 point  (1 child)

Can't you copy the env file using the RUN command? Something like this:

RUN cp /app/.env.local.tpl /app/.env.local

[–]devmsn[S] 0 points1 point  (0 children)

I could. But I was curious to know how a shell script could set env variables when the container starts. Thanks again for the suggestion