-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (24 loc) · 950 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
FROM ubuntu
# Install Anaconda
RUN apt-get update && apt-get install -y wget
ENV CONDA_DIR /opt/conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && /bin/bash ~/miniconda.sh -b -p /opt/conda
ENV PATH=$CONDA_DIR/bin:$PATH
# Create and activate the conda environment
RUN conda create -n myenv python=3.8
RUN echo "source activate myenv" > ~/.bashrc
ENV PATH ${CONDA_DIR}/envs/myenv/bin:$PATH
# Install necessary packages
RUN conda install -c pytorch pytorch
# Set the workdir and copy the project files
RUN mkdir /AteltaStream
WORKDIR /AteltaStream
COPY . .
RUN pip3 install mediapipe streamlit opencv-python streamlit
# Allow the container to access the host's system camera and run the script
RUN apt-get install ffmpeg libsm6 libxext6 -y
RUN apt-get update && apt-get install libgl1 -y
EXPOSE 8900
ENV PYTHONPATH=.
ENTRYPOINT ["PYTHONPATH=.", "streamlit", "run"]
CMD ["app/app.py"]