Use python:3.8.2-slim-buster Docker base image (#1095)

This doesn't come with any build dependencies by default, so this
clarifies what really is needed (and as you can see from the diff, not
much).
This commit is contained in:
Dexter Chua 2021-01-10 21:14:50 +08:00 committed by GitHub
parent 80854142a9
commit cd198e2927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@ version: 2
defaults: &defaults
working_directory: ~/repo
docker:
- image: iodide/pyodide-env:10
- image: iodide/pyodide-env:11
environment:
- EMSDK_NUM_CORES: 4
EMCC_CORES: 4

View File

@ -1,9 +1,10 @@
FROM python:3.8.2-buster
FROM python:3.8.2-slim-buster
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
# building packages
bzip2 ccache clang-format-6.0 cmake f2c g++ gfortran libtinfo5 swig \
bzip2 ccache clang-format-6.0 cmake f2c g++ gfortran git make \
patch pkg-config swig unzip wget xz-utils \
# testing packages: libgconf-2-4 is necessary for running chromium
libgconf-2-4 chromium \
&& rm -rf /var/lib/apt/lists/*

View File

@ -26,7 +26,7 @@ function error() {
}
PYODIDE_IMAGE_TAG="10"
PYODIDE_IMAGE_TAG="11"
PYODIDE_PREBUILT_IMAGE_TAG="0.16.1"
DEFAULT_PYODIDE_DOCKER_IMAGE="iodide/pyodide-env:${PYODIDE_IMAGE_TAG}"
DEFAULT_PYODIDE_SYSTEM_PORT="8000"