docs: add Dockerfile

This commit is contained in:
Ting-Jun Wang 2024-05-24 22:02:06 +08:00
parent 922229ec58
commit 48770397a5
Signed by: snsd0805
GPG Key ID: 48D331A3D6160354

15
Dockerfile Normal file
View File

@ -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