-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (21 loc) · 902 Bytes
/
Dockerfile
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
# loading ubuntu 22.04
FROM ubuntu:22.04
# installing python3 and pip3
RUN apt-get update && apt-get install -y python3 python3-pip wget
# installing miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& sh Miniconda3-latest-Linux-x86_64.sh -b -p /root/.conda \
&& rm Miniconda3-latest-Linux-x86_64.sh
# setting up the path
ENV PATH="/root/.conda/bin:${PATH}"
# update the conda
RUN conda update -n base -c defaults conda
# set the working directory to the project directory
WORKDIR /project
# copy the project files to the project directory
COPY . /project
# creating a conda environment and installing the dependencies
RUN conda create -n myenv
RUN /bin/bash -c "source activate myenv && pip install -r requirements.txt"
# setting the entry point
ENTRYPOINT ["/bin/bash", "-c", "source activate myenv && python3 blur_face_img.py"]