-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'python-3.12-layers-support' into feat/python-312
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
ARG base_image | ||
ARG python_version=base | ||
|
||
FROM ${base_image} AS base | ||
|
||
RUN dnf install -y \ | ||
boost-devel \ | ||
jemalloc-devel \ | ||
libxml2-devel \ | ||
libxslt-devel \ | ||
bison \ | ||
make \ | ||
gcc \ | ||
gcc-c++ \ | ||
flex \ | ||
autoconf \ | ||
zip \ | ||
git \ | ||
ninja-build | ||
|
||
WORKDIR /root | ||
|
||
FROM ${python_version} | ||
COPY pyproject.toml poetry.lock ./ | ||
|
||
RUN pip3 install --upgrade pip wheel | ||
RUN pip3 install --upgrade urllib3==1.26.16 # temporary to avoid https://github.com/urllib3/urllib3/issues/2168 (TODO remove when the AL2 image updates to support OpenSSL 1.1.1+) | ||
RUN pip3 install --upgrade six cython cmake hypothesis poetry | ||
RUN poetry config virtualenvs.create false --local && poetry install --no-root --no-dev | ||
|
||
RUN rm -f pyproject.toml poetry.lock | ||
|
||
ENTRYPOINT ["/bin/sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters