Skip to content

Commit

Permalink
feat!: switch to alpine, add python image
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 24, 2024
1 parent 1990700 commit 539720b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ jobs:
run: |
docker buildx build --tag vienna-builder --load .
docker buildx build --tag vienna-builder-vtk --build-arg VTK="True" --load .
docker buildx build --tag vienna-builder-python --build-arg PYTHON="True" --load .
docker image tag vienna-builder ghcr.io/viennatools/vienna-builder:stock
docker image tag vienna-builder-vtk ghcr.io/viennatools/vienna-builder:vtk
docker image tag vienna-builder-python ghcr.io/viennatools/vienna-builder:python
docker push ghcr.io/viennatools/vienna-builder:stock
docker push ghcr.io/viennatools/vienna-builder:vtk
docker push ghcr.io/viennatools/vienna-builder:python
16 changes: 12 additions & 4 deletions Dockerfile
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

0 comments on commit 539720b

Please sign in to comment.