mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
c0609a881c
* Switches from using Python 2 to Python 3 for `bob-builder` * Adds `--no-install-recommends` to reduce unnecessary packages * Removes unnecessary pinning of pip for Heroku-18 build * Moves `DEBIAN_FRONTEND` to RUN level env var, given: https://serverfault.com/a/797318 Refs @W-8119717@. [skip changelog]
22 lines
539 B
Docker
22 lines
539 B
Docker
FROM heroku/cedar:14
|
|
|
|
ENV WORKSPACE_DIR="/app/builds" \
|
|
S3_BUCKET="lang-python" \
|
|
S3_PREFIX="cedar-14/" \
|
|
STACK="cedar-14"
|
|
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
|
libsqlite3-dev \
|
|
python3-pip \
|
|
realpath \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/
|
|
# Can't use `--disable-pip-version-check --no-cache-dir` since not supported by Ubuntu 14.04's pip.
|
|
RUN pip3 install -r /app/requirements.txt
|
|
|
|
COPY . /app
|