Simplifying Offline Python Deployments With Docker

By realpython - 2020-12-03

Description

How to package up a Python project for distribution internally on a machine cut off from the Internet using Docker.

Summary

  • In cases when a production server does not have access to the Internet or to the internal network, you will need to bundle up the Python dependencies (as wheel files) and interpreter along with the source code.
  • Plus, if you uncover issues with the new deploy you can easily rollback.
  • Think about how you could automate this process given a configuration file.

 

Topics

  1. Coding (0.25)
  2. Machine_Learning (0.07)
  3. Backend (0.07)

Similar Articles

Working With Python Virtual Environments

By realpython - 2021-03-10

This course demonstrates how Python's virtual environments work as a "sandbox" and you get a quick walkthrough on how to set up a new environment (or virtualenv, as they're called for short) and how t ...

Pointers in Python: What's the Point

By realpython - 2021-03-09

In this step-by-step tutorial, you'll get a clearer understanding of Python's object model and learn why pointers don't really exist in Python. You'll also cover ways to simulate pointers in Python wi ...

PyPy: Faster Python With Minimal Effort

By realpython - 2020-12-28

In this tutorial, you'll learn how you can use PyPy to improve the speed of your applications. You'll see how PyPy compares with other Python implementations like CPython and learn about features that ...

5 big and powerful Python web frameworks

By InfoWorld - 2021-01-17

Why build your own user credentialing, form handling, security, and other stock components? These big and powerful Python frameworks cover all the bases.