Add container for local compilation#16
Conversation
| PATH=/usr/local/cargo/bin:$PATH \ | ||
| RUST_VERSION=1.95.0 | ||
|
|
||
| RUN set -eux; \ |
There was a problem hiding this comment.
why environment variables in image, just pass the environment variables when you run the container? I feel like that stuff is not meant to be done in the docker image.
There was a problem hiding this comment.
Disagree
There was a problem hiding this comment.
Ok but fr tho, if the image is host architecture dependent that those environment variables should be passed into the container by the host, not set at image build.
There was a problem hiding this comment.
Thats how docker selective arch build works
There was a problem hiding this comment.
Also dpkg --print-architecture runs in the container when you build the docker image, so you are depending on environment variables already passed to the image at build time.
There was a problem hiding this comment.
You lucky the base image is already multi-arch
24a985c to
0772dc7
Compare
Adds a Dockerfile with clang, rust, and opencv installed local development. It is not intended for cross compilation.
Should support the following architectures: