DriLLFreAK100 / codefee-works-api

Just an experimental API project written in Rust
9 stars 2 forks source link

build: support multi arch builds #10

Closed DriLLFreAK100 closed 1 year ago

DriLLFreAK100 commented 1 year ago

This change includes a flag option to specify target machine architecture for the Docker build.

Here are some examples to spin up the stack

  1. arm64 / aarch64, e.g. M1 Mac,
    
    # It is supported by default. You can simply run
    docker-compose up

You may also specify it explicitly

docker-compose build --build-arg "ARCH=aarch64" docker-compose up


2. amd84 / x86_64, e.g. Intel chips, 
``` bash
# You need to specify the ARCH argument accordingly
docker-compose build --build-arg "ARCH=x86_64"
docker-compose up