From 30048ae3042cafe9795efc4b70e59760207a4055 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Fri, 7 Oct 2022 16:19:43 +0000 Subject: [PATCH] removed the slim Docker image since it does not build properly --- .github/workflows/release.yml | 23 ----------------------- Dockerfile.slim-alpine | 34 ---------------------------------- 2 files changed, 57 deletions(-) delete mode 100644 Dockerfile.slim-alpine diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd382fa..98da5ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,26 +53,3 @@ jobs: dockerfile: Dockerfile image: video2x tags: latest, ${{ needs.setup.outputs.tag }} - - container-variants: - name: Build and upload variants of the container - needs: - - setup - - create-release - strategy: - matrix: - version: - - slim-alpine - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - uses: mr-smithers-excellent/docker-build-push@v5 - name: Build & push the Docker image - with: - registry: ghcr.io - username: ${{ secrets.GHCR_USER }} - password: ${{ secrets.GHCR_TOKEN }} - dockerfile: Dockerfile.${{ matrix.version }} - image: video2x - tags: ${{ needs.setup.outputs.tag }}-${{ matrix.version }} diff --git a/Dockerfile.slim-alpine b/Dockerfile.slim-alpine deleted file mode 100644 index 7e35391..0000000 --- a/Dockerfile.slim-alpine +++ /dev/null @@ -1,34 +0,0 @@ -# Name: Video2X Dockerfile (Slim Alpine) -# Creator: K4YT3X -# Date Created: February 1, 2022 -# Last Modified: March 18, 2022 - -# stage: build python components into heels -FROM docker.io/library/python:3.10.4-alpine3.15 AS builder -COPY . /video2x -WORKDIR /video2x -RUN apk add --no-cache \ - cmake g++ gcc git ninja swig linux-headers \ - ffmpeg-dev glslang-dev jpeg-dev vulkan-loader-dev zlib-dev \ - && pip install -U pip \ - && CMAKE_ARGS="-DWITH_FFMPEG=YES" pip wheel -w /wheels opencv-python \ - && pip wheel -w /wheels wheel pdm-pep517 . - -# stage 2: install wheels into final image -FROM docker.io/library/python:3.10.4-alpine3.15 -LABEL maintainer="K4YT3X " \ - org.opencontainers.image.source="https://github.com/k4yt3x/video2x" \ - org.opencontainers.image.description="A lossless video/GIF/image upscaler" - -COPY --from=builder /wheels /wheels -COPY . /video2x -WORKDIR /video2x -RUN apk add --no-cache --virtual .run-deps \ - ffmpeg libgomp libjpeg-turbo libstdc++ \ - vulkan-loader mesa-vulkan-ati \ - && pip install --no-cache-dir -U pip \ - && pip install --no-cache-dir --no-index -f /wheels . \ - && rm -rf /wheels /video2x - -WORKDIR /host -ENTRYPOINT ["/usr/local/bin/python", "-m", "video2x"]