forked from abhirooptalasila/AutoSub
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (18 loc) · 592 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
ARG BASEIMAGE=ubuntu:18.04
#ARG BASEIMAGE=nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04
FROM ${BASEIMAGE}
ARG DEPSLIST=requirements.txt
#ARG DEPSLIST=requirements-gpu.txt
ENV PYTHONUNBUFFERED 1
RUN DEBIAN_FRONTEND=noninteractive apt update && \
apt -y install ffmpeg libsm6 libxext6 python3 python3-pip && \
apt -y clean && \
rm -rf /var/lib/apt/lists/*
COPY $DEPSLIST ./requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
COPY *.pbmm ./
COPY *.scorer ./
COPY setup.py ./
COPY autosub ./autosub
RUN mkdir audio output
ENTRYPOINT ["python3", "autosub/main.py"]