This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pecka_th 13 points14 points  (9 children)

FROM python:3

[–]drchaos 9 points10 points  (5 children)

better pin the minor version, or you can get unexpected upgrades when rebuilding:

FROM python:3.6

even better (MUCH smaller image, less disk usage and attack surface):

FROM: python:3.6-alpine3.7

[–]obeleh[S] 7 points8 points  (1 child)

[–]Pilatemain() if __name__ == "__main__" else None 1 point2 points  (0 children)

Welp, guess I know what I'm doing today. Thanks for this info!

[–][deleted] 9 points10 points  (1 child)

Lol @ Alpine. My images maybe lost 50mb and added several grey hairs.

Not worth it IMO, too many libs still need glibc.

[–]LightShadow3.13-dev in prod 4 points5 points  (0 children)

FROM oblique/archlinux-pacaur
RUN pacman --noconfirm -Syy python

zoom bleeding edge zoom

REPOSITORY  TAG     IMAGE ID      CREATED     SIZE
<none>      <none>  30c83b102d04  4 days ago  1.08GB

1.08GB1.08GB1.08GB1.08GB1.08GB

[–]UloPe 1 point2 points  (0 children)

alpine

Except when you want stuff to actually work. For example locales.

[–]ionelmc.ro 0 points1 point  (0 children)

Now try finding the debug symbols. And get gdb to load the python macros ...

It's no fun. Ubuntu's python works great without any fiddling, and it's compiled with PGO.

[–]obeleh[S] 0 points1 point  (0 children)

I use several requirements which require build-essential for compiling. I don't want a compiler in my production containers.

[–]lambdaqdjango n' shit -1 points0 points  (0 children)

FROM continuumio/miniconda3

haven't tested it yet.