Docker Community Forums

Share and learn in the Docker community.

Newbie help: Create a single dockerfile for Python app that runs on all (supported) OS's?

docker

(Scorpiodawg) #1

Hello there,

Very new to Docker and any pointers would be appreciated! I’m trying to build a simple Dockerfile to build a container that runs a Python script that invokes the openssl binary. I wanted to build it on a Debian image to avoid distributing versions of openssl per platform (presumably).

Can this same Dockerfile/Docker image successfully be used to create containers in Windows, macOS and Ubuntu? Or do I need to create separate Dockerfiles to support Windows and macOS?

Any guidance is much appreciated!

Cheers