Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Django Template Django Template
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • IzeniIzeni
  • Django TemplateDjango Template
  • Merge requests
  • !8

Don't run apt-get in the Dockerfile

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Joshua Gardner requested to merge docker-no-apt into develop Mar 30, 2016
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 1

I discovered two things about the base python:3.5 docker image:

  1. The Python.h file already exists, it's just in a non-standard place (/usr/local/include/python3.5m). Adding that to the CPATH allows compilation without installing python-dev. It's counterproductive to install python-dev anyway because the python base images install Python from source, not from apt-get, and installing from apt-get kind of ruins that.
  2. libpq-dev is already installed in the base image.

Therefore, don't need to apt-get install anything! Just make sure that the proper include path is set for C-module compilation.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: docker-no-apt