From 9cca8016c4b9054adc80011ae57d8ebdbba87938 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Tue, 4 Apr 2023 13:42:29 +0200 Subject: [PATCH] First version of auto-editor --- tools/auto-editor/Dockerfile | 23 +++++++++++++++++++++++ tools/auto-editor/info.env | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 tools/auto-editor/Dockerfile create mode 100644 tools/auto-editor/info.env diff --git a/tools/auto-editor/Dockerfile b/tools/auto-editor/Dockerfile new file mode 100644 index 0000000..e183d8e --- /dev/null +++ b/tools/auto-editor/Dockerfile @@ -0,0 +1,23 @@ +# ---- Base ---- +FROM python:slim AS base +#ENV PYTHONDONTWRITEBYTECODE=1 +WORKDIR /app +# Install packages +RUN apt update && apt install -y ffmpeg && rm -rf /var/lib/apt/lists/* +#RUN pip install --no-compile --no-cache-dir ae-ffmpeg +#COPY .build/repository/ae-ffmpeg/ae_ffmpeg/Darwin-x86_64/* /usr/bin/ + +# ---- Build ---- +FROM base AS build +ENV PYTHONDONTWRITEBYTECODE=1 +# Copy sources +ADD .build/repository/auto_editor auto_editor +ADD .build/repository/setup.py . +ADD .build/repository/README.md . +# Run install +RUN pip install --no-compile --no-cache-dir -e . + +# ---- Release ---- +FROM build AS release + +ENTRYPOINT ["auto-editor"] diff --git a/tools/auto-editor/info.env b/tools/auto-editor/info.env new file mode 100644 index 0000000..fab8c9d --- /dev/null +++ b/tools/auto-editor/info.env @@ -0,0 +1,2 @@ +GIT_REPOSITORY=https://github.com/WyattBlue/auto-editor +TAG=latest-tag