docs: add Dockerfile
This commit is contained in:
parent
922229ec58
commit
48770397a5
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user