From 48770397a5764f689fcc04d8792804c5c5fd3023 Mon Sep 17 00:00:00 2001 From: Ting-Jun Wang Date: Fri, 24 May 2024 22:02:06 +0800 Subject: [PATCH] docs: add Dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a14cf73 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM ubuntu:22.04 + +RUN apt-get update && apt-get install -y python3 python3-pip git && pip install --upgrade pip \ + && git clone https://gitea.snsd0805.com/snsd0805/NTU-AI-HW5.git \ + && cd NTU-AI-HW5 && pip install -r requirements.txt + +# opencv in docker container +RUN echo 'alias python=python3' >> ~/.bashrc \ + && echo 'alias pip=pip3' >> ~/.bashrc \ + && apt-get update && apt-get install -y ffmpeg libsm6 libxext6 \ + && pip uninstall opencv-python-headless \ + && pip install opencv-python-headless + +WORKDIR /NTU-AI-HW5 +