File tree Expand file tree Collapse file tree 3 files changed +28
-12
lines changed Expand file tree Collapse file tree 3 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 1
1
FROM heroku/cedar:14
2
2
3
- WORKDIR /app
4
3
ENV WORKSPACE_DIR="/app/builds" \
5
4
S3_BUCKET="lang-python" \
6
5
S3_PREFIX="cedar-14/" \
7
- DEBIAN_FRONTEND=noninteractive \
8
6
STACK="cedar-14"
9
7
10
- RUN apt-get update && apt-get install -y python-pip libsqlite3-dev realpath && rm -rf /var/lib/apt/lists/*
8
+ RUN apt-get update \
9
+ && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
10
+ libsqlite3-dev \
11
+ python3-pip \
12
+ realpath \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ WORKDIR /app
11
16
12
17
COPY requirements.txt /app/
13
- RUN pip install -r /app/requirements.txt
18
+ # Can't use `--disable-pip-version-check --no-cache-dir` since not supported by Ubuntu 14.04's pip.
19
+ RUN pip3 install -r /app/requirements.txt
14
20
15
21
COPY . /app
Original file line number Diff line number Diff line change 1
1
FROM heroku/heroku:16-build
2
2
3
- WORKDIR /app
4
3
ENV WORKSPACE_DIR="/app/builds" \
5
4
S3_BUCKET="lang-python" \
6
5
S3_PREFIX="heroku-16/" \
7
- DEBIAN_FRONTEND=noninteractive \
8
6
STACK="heroku-16"
9
7
10
- RUN apt-get update && apt-get install -y python-pip libsqlite3-dev && rm -rf /var/lib/apt/lists/*
8
+ RUN apt-get update \
9
+ && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
10
+ libsqlite3-dev \
11
+ python3-pip \
12
+ python3-setuptools \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ WORKDIR /app
11
16
12
17
COPY requirements.txt /app/
13
- RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
18
+ RUN pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
14
19
15
20
COPY . /app
Original file line number Diff line number Diff line change 1
1
FROM heroku/heroku:18-build
2
2
3
- WORKDIR /app
4
3
ENV WORKSPACE_DIR="/app/builds" \
5
4
S3_BUCKET="lang-python" \
6
5
S3_PREFIX="heroku-18/" \
7
- DEBIAN_FRONTEND=noninteractive \
8
6
STACK="heroku-18"
9
7
10
- RUN apt-get update && apt-get install --no-install-recommends -y python-pip-whl=9.0.1-2 python-pip=9.0.1-2 python-setuptools python-wheel libsqlite3-dev && rm -rf /var/lib/apt/lists/*
8
+ RUN apt-get update \
9
+ && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
10
+ libsqlite3-dev \
11
+ python3-pip \
12
+ python3-setuptools \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ WORKDIR /app
11
16
12
17
COPY requirements.txt /app/
13
- RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
18
+ RUN pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
14
19
15
20
COPY . /app
You can’t perform that action at this time.
0 commit comments