-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: switch to alpine, add python image
- Loading branch information
Showing
2 changed files
with
15 additions
and
4 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 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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
FROM fedora:41 | ||
FROM alpine:latest | ||
|
||
# Arguments | ||
|
||
ARG VTK | ||
ARG PYTHON | ||
|
||
# Build dependencies | ||
|
||
RUN dnf install -y gcc gcc-c++ kernel-devel cmake ninja-build | ||
RUN dnf install -y git docker sed | ||
RUN apk add build-base cmake ninja-build | ||
RUN apk add git docker sed | ||
|
||
# Conditionally pre-install VTK | ||
|
||
RUN if [ "$VTK" = "True" ]; then \ | ||
dnf install -y vtk vtk-devel; \ | ||
apk add vtk; \ | ||
fi | ||
|
||
RUN if [ "$PYTHON" = "True" ]; then \ | ||
apk add py3-pip && pip install -U cmakelang pyyaml clang-format==17.0.6; \ | ||
fi |