Ship container
Ship container

The article below shows how to wrap up Python Flask + VueJS Single-Page app into a single docker container.

The sample application has the following structure:

. 
├── frontend/
│ ├── config
│ ├── node_modules
│ ├── src
│ ├── static
│ ├── ... │
├── package.json
│ ├── package-lock.json
│ └── ...
├── backend/
│ ├── ...
│ ├── __init__.py
│ ├── requirements.txt
│ └── ...
├── .gitignore
└── README.MD

First of all, we have to create Dockerfile at the root of the project, a text document containing the instructions for Docker to build images automatically.

To easily define…

Alex

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store