Skip to content

Latest commit

 

History

History

python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Python Docker images

Docker image containing

  • navikt/common
  • slim variant of the official Python image for given version

Basic Usage

We support two ways of running your app:

  1. a script called main.py
  2. Regular Docker CMD

Create a Dockerfile containing:

Simplest example

The simplest way of running your app is to create a script to start the applicaton and copy it into your container as main.py. Since the default working directory is /app, there's no need to specify the path.

FROM ghcr.io/navikt/baseimages/python:3.8
COPY my-cool-app/ .