Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpin Dockerfile base image and package versions #26713

Merged
merged 3 commits into from
Feb 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
# Common stage: install dependencies, set up the Debian image
# ===========================================================

FROM debian:11 AS chapel-base
FROM debian:latest AS chapel-base

RUN apt-get update && apt-get install -y --no-install-recommends \
bash \
ca-certificates \
clang-11 \
cmake \
curl \
wget \
file \
gcc \
git \
g++ \
libclang-11-dev \
libclang-cpp11-dev \
libedit-dev \
libgmp10 \
libgmp-dev \
llvm-11-dev \
llvm-11 \
llvm-11-tools \
locales \
make \
libedit-dev \
git \
mawk \
make \
cmake \
m4 \
perl \
pkg-config \
gcc \
g++ \
clang \
libclang-dev \
libclang-cpp-dev \
llvm \
llvm-dev \
libgmp10 \
libgmp-dev \
protobuf-compiler \
python-setuptools \
python3 \
python3-dev \
python3-setuptools \
python3-pip \
python3-venv \
python3-dev \
wget \
&& rm -rf /var/lib/apt/lists/*

# configure locale
Expand Down Expand Up @@ -72,7 +71,7 @@ RUN make cleanall
# Hack to get access to Chapel binaries
RUN cd $CHPL_HOME/bin && ln -s */* .

# The .git folder is huge and we really don't need it.
# Remove some unneeded files to reduce image size
RUN rm -rf .git
RUN for subdir in `ls test || true`; do \
if [ "$subdir" != "release" ]; then \
Expand Down