Skip to content

Commit

Permalink
fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Jul 8, 2024
1 parent 7743725 commit e7598d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
cache-to: type=local,dest=${{ steps.cache.outputs.cache-dir }}
tags: ${{ steps.metadata.outputs.tagged-image-name }}
build-args: |
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_RAGNA=${{ steps.metadata.outputs.version }}
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_RAGNA_BASE=${{ steps.metadata.outputs.version }}
# Unfortunately, there currently seems to be no way to build a multiplatform
# image and access a single one for the host platform afterwards. Thus, we
# only build a multiplatform image when we also want to push to the registry.
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ COPY pyproject.toml .
# the ragna folder only includes files that we are tracking. Thus, we just include
# everything manually.
# 2. We need to pass the version expliclitly as
# --build-arg SETUPTOOLS_SCM_PRETEND_VERSION_FOR_RAGNA=...,
# --build-arg SETUPTOOLS_SCM_PRETEND_VERSION_FOR_RAGNA_BASE=...,
# since setuptools-scm cannot infer the version
RUN echo '[tool.setuptools.package-data]\n"*" = ["*"]' >> pyproject.toml
ARG SETUPTOOLS_SCM_PRETEND_VERSION_FOR_RAGNA
ARG SETUPTOOLS_SCM_PRETEND_VERSION_FOR_RAGNA_BASE
RUN pip install --progress-bar=off --no-deps .

WORKDIR /var/ragna
Expand Down

0 comments on commit e7598d0

Please sign in to comment.