Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making Docker image compatible with arm64 #4461

Open
paulosousadias opened this issue Feb 18, 2025 · 0 comments
Open

Making Docker image compatible with arm64 #4461

paulosousadias opened this issue Feb 18, 2025 · 0 comments

Comments

@paulosousadias
Copy link

Is your feature request related to a problem? Please describe.
Not a specific problem, just needed to deploy on a arm64 architecture.

Describe the solution you would like
Modified the Dockerfile, really a small adjustment in the getting the tiny command

Describe alternatives you have considered
A simple change in the web/docker/Dockerfile make it able to work for amd64 and arm64. See diff bellow

#diff Dockerfile.base Dockerfile
43c43
< FROM python:3.9.7-slim-buster
---
> FROM python:3.9.7-slim-buster as base-stage
133a134,136
> 
> ## For --platform=linux/amd64
> FROM base-stage as stage-amd64
134a138,151
> 
> 
> ## For --platform=linux/arm64
> FROM base-stage as stage-arm64
> ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-arm64 /tini
> 
> 
> ## Final stage
> # Declare TARGETARCH to make it available
> ARG TARGETARCH
> # Select final stage based on TARGETARCH ARG
> FROM stage-${TARGETARCH} as final
> 
> 
144a162
> 

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant