# Tech Note: Dockerizing your Python Application on a Wago Controller

**URL:** <https://www.wago.community/t/tech-note-dockerizing-your-python-application-on-a-wago-controller/886>\
**Category:** Python\
**Tags:** docker, linux\
**Created:** [April 16, 2024, 6:20pm UTC](https://www.wago.community/t/tech-note-dockerizing-your-python-application-on-a-wago-controller/886 "2024-04-16T18:20:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe\_a](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/joe_a/32/137_2.png) [@joe\_a](https://www.wago.community/u/joe_a)\
**Post date:** [April 16, 2024, 6:20pm UTC](https://www.wago.community/t/tech-note-dockerizing-your-python-application-on-a-wago-controller/886/1 "2024-04-16T18:20:45Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/285257e5384016cd16b2ef569834416c944bcedf.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/303f63c83a4124cc2ffcfa81e06e2db9f0dd2fe1.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/8cef447ef6b201014dca78da3c0a5f3feb371b8a.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/f48367c0609538780890a9c155d7d856ba2b2c24.png)

[docker-python.pdf](https://www.wago.community/uploads/short-url/85ZcLWmHxxVY9DkVx2SiPcAZCII.pdf) (236.2 KB)

---

<div class="post-metadata">

**Author:** ![WagoKurt](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagokurt/32/11_2.png) [@WagoKurt](https://www.wago.community/u/WagoKurt)\
**Post date:** [May 10, 2024, 6:00pm UTC](https://www.wago.community/t/tech-note-dockerizing-your-python-application-on-a-wago-controller/886/2 "2024-05-10T18:00:09Z")

</div>

Another option is to make a docker file to build an image based on alpine linux with python and pip installed. I found that calling docker to run a python script can take quite some time to instantiate the container, run the python script and then kill the container. If the container is running all the time, then you can just have the container call the script when needed and it will execute much faster.

---

<div class="post-metadata">

**Author:** ![joe\_a](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/joe_a/32/137_2.png) [@joe\_a](https://www.wago.community/u/joe_a)\
**Post date:** [May 10, 2024, 6:11pm UTC](https://www.wago.community/t/tech-note-dockerizing-your-python-application-on-a-wago-controller/886/3 "2024-05-10T18:11:53Z")

</div>

Kurt, that’s a great point! I’ll look into that too. Thanks for sharing.
