Sign inSign up

kensonman/python3

By kensonman

Updated over 9 years ago

The file used to create the docker image to test python application (especially the django).

Image
0

162

kensonman/python3 repository overview

Introduction

File: Dockerfile Author: Kenson Man [email protected] Desc: The file used to create the docker image. This image is used to test python application (especially the django).

The image will:

  1. Install python3, python3-pip, python3-dev, vim;
  2. Upgrade the pip;
  3. Create "thisuser" user
  4. Execute /usr/src/app/autoscript if exists;
  5. Install PIP requirements if /usr/src/app/requirements.txt exists;
  6. Execute /usr/src/app/script if exists; otherwise, django testing server on port 8000

Environments

    ARG UID=1000
    ARG GID=1000
    ARG USERNAME=thisuser
    ARG SRC=/usr/src/app
    ARG AUTOSCRIPT="${SRC}/autoscript"
    ARG SCRIPT="${SRC}/script"
    ARG REQUIREMENTS="${SRC}/requirements.txt"

Tag summary

Content type

Image

Digest

Size

373.6 MB

Last updated

over 9 years ago

docker pull kensonman/python3:uwsgi