Skip to content

Dockerfile doesn't point to specific Python build, instead just says Python:3 #955

@jonfroehlich

Description

@jonfroehlich

Our Dockerfile doesn't properly specify a Python build to use, which is causing problems:

# All Dockerfiles must start with a 'FROM' instruction, which specifies a base image
# See: https://docs.docker.com/engine/reference/builder/#format
# Note, some online sources say that you should put FROM django here (e.g., https://runnable.com/docker/python/dockerize-your-django-application)
# but, in fact, you should NOT do this according to the official docs (as this approach has been deprecated). 
# See: https://hub.docker.com/_/django/
FROM python:3.7

# Setup some other prereqs needed:
# TODO: we may want to consider adding pip here as I'm getting warnings about old pip
#RUN pip install --upgrade pip 

# See: https://www.quora.com/How-does-one-install-pip-in-a-Docker-container-using-a-Dockerfile
RUN apt-get update && apt-get --assume-yes install imagemagick ghostscript sqlite3

To fix this, need to specify exactly what Python to use. See: Dockerizing Python is hard.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions