python3.7-alpine3.8 still uses python3.6 at runtime
See original GitHub issueHi, First of all, you do a great work with that images and they save me a lot of time 😃
Because I use the new asyncio API of Python 3.7 I recently needed to update to the python3.7-alpine3.8 image. And it seems the image still uses python3.6.9 at runtime.
At build time the Python path is configured to use Python 3.7.3, which is absolutely fine. But it seems uWSGI is still kind of linked to Python 3.6.9:
*** Starting uWSGI 2.0.17 (64bit) on [Thu Apr 30 14:29:09 2020] ***
compiled with version: 6.4.0 on 01 May 2018 17:28:25
os: Linux-4.19.76-linuxkit #1 SMP Thu Oct 17 19:31:58 UTC 2019
nodename: fad1b842c0c3
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 2
current working directory: /app
detected binary path: /usr/sbin/uwsgi
your memory page size is 4096 bytes
detected max file descriptor number: 1048576
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Python version: 3.6.9 (default, Oct 17 2019, 11:17:29) [GCC 6.4.0]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x5649671cffa0
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
When I write out the Pathon version during build time I get the following:
Step 9/11 : RUN python3 --version
---> Running in d2fa49f1f0d3
Python 3.7.3
I think this is just a configuration thing somewhere in uWSGI
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
python - Official Image | Docker Hub
Python is an interpreted, interactive, object-oriented, open-source programming language.
Read more >Using Alpine can make Python Docker builds 50× slower
Alpine Linux is often recommended as a smaller, faster Docker base image. But if you're using Python, it will slow down your build...
Read more >How to run Docker with python and Java? - Stack Overflow
An easier solution to the above issue is to use multi-stage docker containers where you can copy the content from one to another....
Read more >Run Python Versions in Docker: How to Try the Latest Python ...
Understanding Python Versions and Docker; Using Docker ... python3.7m 2to3-3.4 idle pydoc3.6 python3.7m-config 2to3-3.5 idle3.4 pydoc3.7 python3.8 2to3-3.6 ...
Read more >Docker Best Practices for Python Developers - TestDriven.io
REPOSITORY TAG IMAGE ID CREATED SIZE python 3.9.6-alpine3.14 ... 3.9.6-slim -> 3.9.7-slim -- you should pull the new image and update your ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Awesome @tiangolo
🎉 thanks @tiangolo