Github user kaelumania commented on the issue:

    https://github.com/apache/flink/pull/3086
  
    @mxn neither `docker build` nor `docker compose build` support setting 
environment variables from outside during the build. Further as the 
`docker-compose` documentation states
    > Note: If your service specifies a build option, variables defined in 
environment will not be automatically visible during the build. Use the args 
sub-option of build to define build-time environment variables.
    
    It is only possible to give arguments to the build step of `docker-compose` 
using the `--build-args` option, which can be interpolated with 
`${my_env_var}`. But still requires the `Dockerfile` to use `ARG`.
    
    Further I question the Docker version compatibility. First, flink could 
provide an automated build on Docker Hub. Second, one could provide a 
`Dockerfile.legacy` aswell.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to