mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-28 06:59:11 +00:00
removed the slim Docker image since it does not build properly
This commit is contained in:
parent
84b730497b
commit
30048ae304
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@ -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 }}
|
||||
|
@ -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 <i@k4yt3x.com>" \
|
||||
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"]
|
Loading…
Reference in New Issue
Block a user