Tag Archives: flask

LKSN2021 Modul C – Containerized Python Web Application

Running Python Web Application Use the code Python Web Application in /opt/sample-web to create a Dockerfile Use base image python:3.8-slim Expose port 80 Copy all code into workdir. Use /opt/sample-web as workdir inside the container. Save the Dockerfile in /opt/sample-web/Dockerfile Build the Dockerfile into image with name sampleweb:latest Run the …

Read More »

LKSN2021 Modul C – Python Web Application

Python Web Application Programmers asked us to make sure they can run sample code below in the python3 virtual environment in the development server. Install python3 and other required packages to run the code main.py Enable python3 virtual environment and create a new virtual environment on “/opt/env/myenv” Install the required …

Read More »