File size: 1,899 Bytes
20fc851
 
01e1043
360f619
 
 
 
 
 
 
6232900
20fc851
b5c6a81
59cc860
 
 
 
 
 
 
 
 
 
 
 
308c707
01e1043
 
 
d5fbbd4
 
 
 
 
056020b
d5fbbd4
056020b
d5fbbd4
056020b
d5fbbd4
056020b
d5fbbd4
056020b
d5fbbd4
056020b
321ad01
d5fbbd4
01e1043
 
 
 
e34b42a
 
01e1043
59cc860
01e1043
00fe6d7
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#FROM python:3.10-bullseye
FROM python:3.9-slim

RUN apt-get update && apt-get install -y \
    build-essential \
    curl \
    software-properties-common \
    git \
    && pip install --upgrade pip \
    && apt clean && rm -rf /var/lib/apt/lists/* 
    
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 libx264-dev -y

# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user

# Switch to the "user" user
USER user

# Set home to the user's home directory
ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/yolov-app
COPY --chown=user . $HOME/yolov-app


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

RUN gdown https://drive.google.com/file/d/1lBlZEh0v-WVUJsBb3ZJcUG8zxe5cckWT/view?usp=sharing --fuzzy -O checkpoints/
#ckpt.t7
RUN gdown https://drive.google.com/file/d/14T5lpdJ0dPndYkMKr0sUcSq_myQDQSda/view?usp=sharing --fuzzy -O checkpoints/best181-8376/
#ckpt_latest.pth

RUN gdown https://drive.google.com/file/d/1pIDLMr0UUj_6fWYf9xHJ1lcKcCgmO7Vv/view?usp=sharing --fuzzy -O uploads/
#kitchen.mp4 
RUN gdown https://drive.google.com/file/d/1ip07Lngcicd7pouKs_b0OhpVVoVFRC7U/view?usp=sharing --fuzzy -O uploads/
#slip.mp4 
RUN gdown https://drive.google.com/file/d/1s93CZeEKEp_SwO5Y4KOjNYK0zWBgNiy7/view?usp=sharing --fuzzy -O uploads/
#studycam.mp4 
RUN gdown https://drive.google.com/file/d/1lZNim3Sl_dQN6gcyEvddRLeijM6v-pO5/view?usp=sharing --fuzzy -O uploads/
#cafe_fall.mp4 
RUN gdown https://drive.google.com/file/d/1Ru6ARgQOtshVgSUosFiH7GFRyRM-_R5U/view?usp=sharing --fuzzy -O uploads/
#skate.mp4
RUN gdown https://drive.google.com/file/d/1Md80GemqcuWhVDKXftNNt6owCQQQlWxi/view?usp=sharing --fuzzy -O uploads/
#Sample.png

EXPOSE 5000
EXPOSE 3000
EXPOSE 7860

RUN mkdir -p ~/sg_logs && chmod -R 777 ~/sg_logs
RUN mkdir -p $HOME/sg_logs && chmod -R 777 $HOME/sg_logs

WORKDIR $HOME/yolov-app

CMD ["python","app.py"]