File size: 514 Bytes
dd2b2cc
 
 
 
 
 
 
 
 
 
 
 
 
 
76c14fa
 
dd2b2cc
 
d4ac6cc
dd2b2cc
 
d4ac6cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM tensorflow/tensorflow

EXPOSE 5000
COPY . /app
WORKDIR /app

# opencv fix
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6  -y

RUN pip install --upgrade pip
RUN pip install --ignore-installed -r requirements.txt --no-cache-dir
RUN pip install -e .

RUN ls -lh
# RUN rm -r outputs
# RUN ls -lh

RUN --mount=type=secret,id=COMET_API_KEY,mode=0444,required=true \
    python3 download_model_comet.py --key $(cat /run/secrets/COMET_API_KEY) --version 1.0.1

RUN chmod g+w /app
CMD python3 app/app.py