mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-20 23:49:54 +00:00
ad91a835c0
* update python to 3.12 * drop down to 3.12.4 for compatibility * setup rust toolchain for deps * fix typo * fix linter * fixing linter * adding rust dep * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying to fix circleci * trying new image * trying new image * trying new image * trying new image * invalidate cache * bump reqs * remove cache invalidation * fix cache name * update to use latest image
23 lines
645 B
Docker
23 lines
645 B
Docker
# Rename the build stage from 'base' to 'builder' for clarification and code readability
|
|
FROM python:3.12.4-slim-bullseye as builder
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
|
WORKDIR=/consensus-specs \
|
|
PIP_UPGRADE_CMD="python -m pip install --upgrade pip" \
|
|
INSTALL_CMD="apt install -y git build-essential"
|
|
|
|
RUN mkdir ${WORKDIR}
|
|
WORKDIR ${WORKDIR}
|
|
|
|
# Chain the commands together
|
|
RUN apt update && ${INSTALL_CMD} && ${PIP_UPGRADE_CMD} && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy the current directory contents into the builder
|
|
COPY . .
|
|
|
|
# Inline installation commands
|
|
RUN make install_test && \
|
|
make preinstallation && \
|
|
make pyspec
|
|
|