Modified to download OME from git during Docker image build

This commit is contained in:
Hyunjun Jang
2025-03-02 19:05:36 +09:00
parent 299d88347e
commit 766e469c1f
4 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@ FROM ubuntu:22.04 AS base
## Install libraries by package
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y tzdata sudo curl
RUN apt-get update && apt-get install -y tzdata sudo curl git
FROM base AS build
@ -18,7 +18,7 @@ ENV TEMP_DIR=/tmp/ome
RUN \
mkdir -p ${TEMP_DIR} && \
cd ${TEMP_DIR} && \
curl -sLf https://github.com/AirenSoft/OvenMediaEngine/archive/${OME_VERSION}.tar.gz | tar -xz --strip-components=1
git clone --branch ${OME_VERSION} --single-branch --depth 1 https://github.com/AirenSoft/OvenMediaEngine .
## Install dependencies
RUN \

View File

@ -8,7 +8,7 @@ FROM nvidia/cuda:11.4.3-devel-ubuntu20.04 AS base
## Install libraries by package
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y tzdata sudo curl
RUN apt-get update && apt-get install -y tzdata sudo curl git
FROM base AS build
@ -31,7 +31,7 @@ RUN echo "/usr/local/cuda-11.4/targets/x86_64-linux/lib/stubs" > /etc/ld.so.
RUN \
mkdir -p ${TEMP_DIR} && \
cd ${TEMP_DIR} && \
curl -sLf https://github.com/AirenSoft/OvenMediaEngine/archive/${OME_VERSION}.tar.gz | tar -xz --strip-components=1
git clone --branch ${OME_VERSION} --single-branch --depth 1 https://github.com/AirenSoft/OvenMediaEngine .
## Install dependencies
RUN \

View File

@ -8,7 +8,7 @@ FROM nvidia/cuda:11.4.3-devel-ubuntu20.04 AS base
## Install libraries by package
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y tzdata sudo curl
RUN apt-get update && apt-get install -y tzdata sudo curl git
FROM base AS build

View File

@ -2,7 +2,7 @@ FROM ubuntu:22.04 AS base
## Install libraries by package
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y tzdata sudo curl
RUN apt-get update && apt-get install -y tzdata sudo curl git
FROM base AS build