Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Commit 8f210b5

Browse files
authored
Merge pull request #10 from asottile/improve_size
improve size by not having tgz in the image
2 parents 7bcb3bd + 45f3ac8 commit 8f210b5

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

build.sh

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
set -ex
55

66
TAG=pypywheels/manylinux2010-pypy_x86_64
7-
docker/build_scripts_pypy/prefetch_pypy.sh
87
docker build --rm -t $TAG:latest -f docker/Dockerfile-x86_64 docker/

docker/Dockerfile-x86_64

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
FROM quay.io/pypa/manylinux2010_x86_64
22
LABEL maintainer="Antonio Cuni"
33

4-
COPY sources /
54
COPY build_scripts /build_scripts
65
COPY build_scripts_pypy /build_scripts_pypy
7-
RUN bash build_scripts_pypy/install_pypy.sh && rm -rf build_scripts*
6+
RUN : \
7+
&& build_scripts_pypy/prefetch_pypy.sh \
8+
&& build_scripts_pypy/install_pypy.sh \
9+
&& rm -rf /sources /build_scripts*
810

911
CMD ["/bin/bash"]

docker/build_scripts_pypy/install_pypy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function install_one_pypy {
4747
ln -s /opt/pypy/$shortdir /opt/python/${abi_tag}
4848
}
4949

50-
for TARBALL in /pypy*.tar.bz2
50+
for TARBALL in /sources/pypy*.tar.bz2
5151
do
5252
install_one_pypy "$TARBALL"
5353
rm "$TARBALL"

docker/build_scripts_pypy/prefetch_pypy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
set -ex
44

5-
SOURCES=docker/sources
5+
SOURCES=/sources
66
SQUEAKY_GITHUB_URL=https://github.com/squeaky-pl/portable-pypy/releases/download # old releases
77
URL=https://downloads.python.org/pypy # new releases
88

99

1010
MY_DIR=$(dirname "${BASH_SOURCE[0]}")
1111
. $MY_DIR/../build_scripts/build_utils.sh
1212

13-
[ -d "$SOURCES" ] || mkdir "$SOURCES"
13+
mkdir -p "$SOURCES"
1414
cd "$SOURCES"
1515

1616
# pypy 7.2.0

0 commit comments

Comments
 (0)