-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (22 loc) · 808 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM rust
RUN apt update && apt install -y ffmpeg libavformat-dev libavcodec-dev libavcodec-dev libswscale-dev libavutil-dev libswresample-dev clang
RUN git clone https://github.com/FFMS/ffms2.git && \
cd ffms2 && \
git checkout 55c2af5 && \
./autogen.sh &&\
make -j64 &&\
make install
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
COPY ./ffms-segmenter /app/ffms-segmenter
ENV DENO_INSTALL="/root/.deno"
ENV PATH="$DENO_INSTALL/bin:$PATH"
WORKDIR /app/ffms-segmenter
RUN cargo build --release
COPY . /app
WORKDIR /app
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/"
ENTRYPOINT [ "deno", "run", "-A", "main.ts" ]
# CMD [ "bash" ]
# CMD [ "deno", "run", "-A", "main.ts" ]
# ENTRYPOINT [ "cargo", "build", "--release" ]
# ENTRYPOINT [ "/bin/bash", "-l", "-c" ]