|
@@ -1,95 +1,3 @@
|
|
|
-RUN ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so
|
|
|
-RUN ln -s /usr/lib/python3/dist-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so
|
|
|
-RUN apt-get install -y software-properties-common
|
|
|
-
|
|
|
-#RUN python3.6 /usr/bin/apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
|
|
|
-RUN git clone https://github.com/OpenShot/libopenshot.git
|
|
|
-RUN git clone https://github.com/OpenShot/libopenshot-audio.git
|
|
|
-RUN python3.6 /usr/bin/add-apt-repository ppa:openshot.developers/libopenshot-daily
|
|
|
-
|
|
|
-RUN apt-get install -y \
|
|
|
- cmake \
|
|
|
- pkg-config \
|
|
|
- libopenshot-audio-dev \
|
|
|
- libx11-dev \
|
|
|
- libfreetype6-dev \
|
|
|
- libasound2-dev \
|
|
|
- libavcodec-dev \
|
|
|
- libavformat-dev \
|
|
|
- libavutil-dev \
|
|
|
- libswresample-dev \
|
|
|
- libswscale-dev \
|
|
|
- libpostproc-dev \
|
|
|
- libfdk-aac-dev \
|
|
|
- libjsoncpp-dev \
|
|
|
- libzmq3-dev \
|
|
|
- qtbase5-dev \
|
|
|
- libqt5svg5-dev \
|
|
|
- libbabl-dev \
|
|
|
- libopencv-dev \
|
|
|
- libprotobuf-dev \
|
|
|
- protobuf-compiler \
|
|
|
- python3-dev \
|
|
|
- swig \
|
|
|
- libmagick++-dev
|
|
|
-
|
|
|
-RUN ls
|
|
|
-RUN cd libopenshot-audio
|
|
|
-WORKDIR /app/libopenshot-audio
|
|
|
-RUN cmake -B build -S .
|
|
|
-RUN cmake --build build
|
|
|
-RUN cmake --install build
|
|
|
-
|
|
|
-RUN cd ../libopenshot
|
|
|
-WORKDIR /app/libopenshot
|
|
|
-RUN cmake -B build -S .
|
|
|
-RUN cmake --build build
|
|
|
-
|
|
|
-RUN cd ..
|
|
|
-WORKDIR /app/
|
|
|
-
|
|
|
-# Install Poetry
|
|
|
-RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python3 && \
|
|
|
- cd /usr/local/bin && \
|
|
|
- ln -s /opt/poetry/bin/poetry && \
|
|
|
- poetry config virtualenvs.create false
|
|
|
-
|
|
|
-# Copy poetry.lock* in case it doesn't exist in the repo
|
|
|
-COPY ./app/gpuproject.toml /app/pyproject.toml
|
|
|
-# COPY ./app/poetry.lock* /app/
|
|
|
-
|
|
|
-# Allow installing dev dependencies to run tests
|
|
|
-ARG INSTALL_DEV=false
|
|
|
-RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --no-dev ; fi"
|
|
|
-
|
|
|
-# For development, Jupyter remote kernel, Hydrogen
|
|
|
-# Using inside the container:
|
|
|
-# jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.custom_display_url=http://127.0.0.1:8888
|
|
|
-ARG INSTALL_JUPYTER=false
|
|
|
-RUN bash -c "if [ $INSTALL_JUPYTER == 'true' ] ; then pip install jupyterlab ; fi"
|
|
|
-
|
|
|
-ENV C_FORCE_ROOT=1
|
|
|
-
|
|
|
-COPY ./app /app
|
|
|
-WORKDIR /app
|
|
|
-COPY /${CELERY_ZIP_STORAGE} /app/${CELERY_ZIP_STORAGE}
|
|
|
-COPY /${CELERY_ZIP_STORAGE} /app/${CELERY_ZIP_STORAGE}
|
|
|
-
|
|
|
-RUN apt-get install -y python3.10
|
|
|
-#ENV PYTHONPATH=/app
|
|
|
-
|
|
|
-
|
|
|
-RUN python --version
|
|
|
-RUN python3 --version
|
|
|
-RUN echo ${PYTHONPATH}
|
|
|
-
|
|
|
-
|
|
|
-COPY ./app/worker-start.sh /worker-start.sh
|
|
|
-
|
|
|
-RUN chmod +x /worker-start.sh
|
|
|
-
|
|
|
-CMD ["bash", "/worker-start.sh"]
|
|
|
-
|
|
|
# AI anchor
|
|
|
|
|
|
## Backend Requirements
|