fall-detection / Dockerfile
Kaelan
add package versions
20fc851
raw
history blame contribute delete
No virus
1.9 kB
#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"]