r/flask • • Apr 01 '21

QUALITY CONTENT Having some problems geting my Python Flask project to work with Docker...any suggestions?

Post image
204 Upvotes

23 comments sorted by

41

u/EvilEyeJoe Apr 01 '21

Looks like you already have it containerized. I think that’s causing a conflict with Docker.

13

u/zacharypamela Apr 01 '21

Do you think if I remove it from its current container, and try to switch to Docker, there might be unintended side-effects?

17

u/EvilEyeJoe Apr 01 '21

It looks like the current container is applying some sort of compression algorithm. I’d be concerned about the ability to get it into a different container once it’s decompressed.

2

u/zacharypamela Apr 01 '21

Favorite comment so far. :)

9

u/algorithmbuilder Apr 01 '21

Once you have finished pickled that python object you may perhaps get it through the servicemesh to deploy it elsewhere.

3

u/ManyInterests Advanced Apr 01 '21

It looks like someone tried to port some code from the bottle framework

1

u/zacharypamela Apr 01 '21

You know, I think I tried to start a project work Bottle once, but didn't find it as intuitive. But still didn't better than web.py.

12

u/GunpowderGuy Apr 01 '21

please, dont delete this

7

u/ejb749 Apr 01 '21

You didn't take it to a dock. Get yourself to a marina!

5

u/[deleted] Apr 01 '21

This is too meta for me. I’m out.

4

u/[deleted] Apr 01 '21

that's python in the flask

4

u/[deleted] Apr 01 '21

Docker? I barely know her!

4

u/HeadlineINeed Nov 01 '21

The project seems dead.

1

u/Baldr_Odinson Apr 01 '21

Too much water in the code.

1

u/zacharypamela Apr 01 '21

I mean, that would do it.

3

u/_AACO Apr 01 '21

you're lacking the container to put flask in

3

u/DrMaxwellEdison Apr 01 '21

Looks fine. Time to ship it.

2

u/cieloskyg Apr 01 '21

I think your python application is too big for container hence it won't scale well.Please dive deep in the container to check any python dependencies issue.

2

u/phishrun Apr 02 '21

I’m really glad you didn’t use Pandas

2

u/SnooBandit Apr 02 '21

Yeah. You've to open the lid and let it free.

1

u/rabkaman2018 Apr 02 '21

Put in a eks pod

1

u/_G0D_M0DE_ Apr 02 '21

Let that long boi out

1

u/[deleted] Apr 05 '21

Is that snake dead

☹️