weastur / poetry-docker Goto Github PK
View Code? Open in Web Editor NEWPoetry build tool packaged into docker image with an actual Python
License: MIT License
Poetry build tool packaged into docker image with an actual Python
License: MIT License
Describe the bug
All images (arm, s390x, ppcle etc...) contain x86_64 binaries. Also notice they have identical size:
To Reproduce
Steps to reproduce the behavior:
docker run -it --rm --entrypoint=/bin/bash --platform=linux/arm64 weastur/poetry:1.6.1-python-3.11-slim
Unable to find image 'weastur/poetry:1.6.1-python-3.11-slim' locally
1.6.1-python-3.11-slim: Pulling from weastur/poetry
a378f10b3218: Already exists
c11bdfacfd25: Already exists
64fc9a66a5d8: Already exists
5146634606ba: Already exists
ea740afc3f32: Already exists
318dece267be: Already exists
Digest: sha256:ed52ffbca6cdbea599a67bac374470c8a1f15627fbdff9e99234ac72d480766c
Status: Downloaded newer image for weastur/poetry:1.6.1-python-3.11-slim
root@27c2c22045fc:/# uname -m
x86_64
docker run -it --rm --entrypoint=/bin/bash --platform=linux/arm64 python:3.11-slim
Unable to find image 'python:3.11-slim' locally
3.11-slim: Pulling from library/python
24c63b8dcb66: Pull complete
e7a4e3413405: Pull complete
faabdb9318a7: Pull complete
eea1a21f176f: Pull complete
13ab44602356: Pull complete
Digest: sha256:fc39d2e68b554c3f0a5cb8a776280c0b3d73b4c04b83dbade835e2a171ca27ef
Status: Downloaded newer image for python:3.11-slim
root@3f5d61055a8a:/# uname -m
aarch64
Expected behavior
Additional images should contain binaries for the right architecture
Additional context
It appears in this commit you should have been using TARGETPLATFORM
as opposed to BUILDPLATFORM
(or simply drop the --platform option altogether?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.