File size: 670 Bytes
1c300e3
 
 
 
 
 
 
 
 
 
 
 
a96ecc1
 
1c300e3
c288fd0
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM 763104351884.dkr.ecr.eu-west-1.amazonaws.com/huggingface-pytorch-training:1.10.2-transformers4.17.0-gpu-py38-cu113-ubuntu20.04 as DLC
# RUN apt-get update && apt-get install software-properties-common -y && apt-get update
# RUN add-apt-repository -y ppa:jonathonf/ffmpeg-4
# RUN apt update
# RUN apt install -y ffmpeg
RUN apt-get install git-lfs

COPY ./requirements.txt .
RUN pip install --timeout=60 -r requirements.txt
RUN apt update && apt-get install libsndfile1 -y
RUN echo $(pip freeze) | md5sum | cut -d ' ' -f 1 >> code_version.txt
ARG REPO_URL
ARG CACHEBUST
RUN echo ${CACHEBUST}
RUN git clone $REPO_URL
RUN workdir=/$(basename $REPO_URL)
WORKDIR $workdir