diff --git a/.github/actions/build-and-tag-locally/action.yml b/.github/actions/build-and-tag-locally/action.yml index 149661d77..66015a618 100644 --- a/.github/actions/build-and-tag-locally/action.yml +++ b/.github/actions/build-and-tag-locally/action.yml @@ -84,8 +84,7 @@ runs: - name: Build uses: docker/build-push-action@v6 with: - context: . - file: ${{ inputs.distribution }}/Dockerfile + context: ${{ inputs.distribution }} push: false load: true platforms: ${{ inputs.platform }} @@ -203,8 +202,7 @@ runs: uses: docker/build-push-action@v6 if: ${{ inputs.publish_image == 'true' && contains(fromJSON('["amd64","arm64"]'), steps.platform.outputs.display_name) }} with: - context: . - file: ${{ inputs.distribution }}/Dockerfile + context: ${{ inputs.distribution }} push: true tags: ${{ inputs.registry_repository }}:${{ github.sha }}-${{ inputs.distribution }} cache-from: type=gha diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 74d07c4dc..02967ddca 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -132,6 +132,7 @@ RUN set -eux; \ ; \ \ make -C /usr/src/redis distclean; \ + rm -r /usr/src/redis; \ \ runDeps="$( \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \ @@ -148,7 +149,7 @@ RUN mkdir /data && chown redis:redis /data VOLUME /data WORKDIR /data -COPY alpine/docker-entrypoint.sh /usr/local/bin/ +COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] EXPOSE 6379 diff --git a/debian/Dockerfile b/debian/Dockerfile index c51a537d9..05644b0eb 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -139,6 +139,7 @@ RUN set -eux; \ ; \ \ make -C /usr/src/redis distclean; \ + rm -r /usr/src/redis; \ \ apt-mark auto '.*' > /dev/null; \ [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \ @@ -160,7 +161,7 @@ RUN mkdir /data && chown redis:redis /data VOLUME /data WORKDIR /data -COPY debian/docker-entrypoint.sh /usr/local/bin/ +COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] EXPOSE 6379