Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 949 Bytes

File metadata and controls

43 lines (25 loc) · 949 Bytes

Description:

Creates an image containing Apache 1.8.6.

The microsoft/python is used as the base image.

This dockerfile is for demonstration purposes and may require modification for production use.

Environment:

Windows Server Core Base OS Image

Usage:

Docker Build

docker build -t django:latest .

Docker Run

This will start a container, display the Django version, and then exit. Modify the Dockerfile appropriately for application use.

docker run -it 80:80 django

Dockerfile Details:

# This dockerfile utilizes components licensed by their respective owners/authors.
# Prior to utilizing this file or resulting images please review the respective licenses at: https://github.com/django/django/blob/master/LICENSE

FROM microsoft/python

LABEL Description="Django" Vendor="Django Software Foundation" Version="1.8.6"

RUN ["pip", "install", "Django==1.8.6"]

CMD ["django-admin --version"]