Forked from rkttu/python-nanoserver
4.8K
Windows Nano Server is an SKU designed for the cloud computing environment. But Nano Server is entirely different between the traditional Windows Server operating system. It is just a minimal subset of the existing Windows operating system, so many capabilities are missing.
This repository contains a Python docker image build script for Windows Nano Server.
Docker Hub | GitHub Container Registry
docker pull amitie10g/python-nanoserver:latest
docker run -it amitie10g/python-nanoserver:latest
You can build your Nano Server-based Python image with the below command.
$EACH_PYTHON_VERSION='3.8.2'
$EACH_WIN_VERSION='2004'
$IMAGE_TAG="${EACH_PYTHON_VERSION}_${EACH_WIN_VERSION}"
$TARGET_PYTHON_PIP_VERSION='20.1.1'
$TARGET_PYTHON_GET_PIP_URL='https://github.com/pypa/get-pip/raw/d59197a3c169cef378a22428a3fa99d33e080a5d/get-pip.py'
docker build \
-t python-nanoserver:$IMAGE_TAG \
--build-arg WINDOWS_VERSION=$EACH_WIN_VERSION \
--build-arg PYTHON_VERSION=$EACH_PYTHON_VERSION \
--build-arg PYTHON_RELEASE=$EACH_PYTHON_VERSION \
--build-arg PYTHON_PIP_VERSION=$TARGET_PYTHON_PIP_VERSION \
--build-arg PYTHON_GET_PIP_URL=$TARGET_PYTHON_GET_PIP_URL \
.
This image includes pip and virtualenv.
The django_example directory contains how to build a Nano Server-based Django application container.
Content type
Image
Digest
sha256:9392ea174…
Size
141.2 MB
Last updated
2 months ago
docker pull amitie10g/python-nanoserver:3.11.9-1809