-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kiwix-build] Switch from bionic to manylinux image
- Loading branch information
1 parent
f13b27d
commit 2de8023
Showing
3 changed files
with
29 additions
and
28 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
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
FROM quay.io/pypa/manylinux_2_28_x86_64 | ||
LABEL org.opencontainers.image.source https://github.com/kiwix/container-images | ||
|
||
ENV LANG C.UTF-8 | ||
ENV OS_NAME manylinux | ||
|
||
RUN dnf install -y --nodocs \ | ||
# Base build tools | ||
make automake libtool cmake git-core subversion pkg-config gcc-c++ \ | ||
wget unzip ninja-build which patch xz openssh-clients \ | ||
# Other tools (to remove) | ||
vim less grep \ | ||
&& dnf remove -y "*-doc" \ | ||
&& dnf autoremove -y \ | ||
&& dnf clean all \ | ||
&& python3.12 -m pip install meson pytest requests distro | ||
|
||
ENV PATH /opt/_internal/cpython-3.12.3/bin:$PATH | ||
|
||
# Create user | ||
RUN groupadd --gid 121 runner | ||
RUN useradd --uid 1001 --gid 121 --create-home runner | ||
USER runner | ||
WORKDIR /home/runner | ||
|
||
RUN mkdir -p /home/runner/.local/bin | ||
RUN ln -s /usr/local/bin/python3.12 /home/runner/.local/bin/python | ||
ENV PATH /home/runner/.local/bin:$PATH |