forked from hayabhay/frogbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 869 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
# Currently tested & workong for Python 3.11
FROM python:3.11-slim
# Run updates and install ffmpeg
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y ffmpeg
# Copy the current directory contents into the container at /app
COPY app /app
# Copy and install the requirements
COPY ./requirements.txt /requirements.txt
# Pip install the dependencies
RUN pip install --upgrade pip
# For CPU only, you can use pip install git+https://github.com/MiscellaneousStuff/whisper.git
# in place of openai-whisper.
# Also, --extra-index-url https://download.pytorch.org/whl/cpu might be needed if you are using a CPU only machine
RUN pip install --no-cache-dir -r /requirements.txt
# Set the working directory to /app
WORKDIR /app
# Expose port 8501
EXPOSE 8501
# Mount the data volume
VOLUME /data
# Run the app
CMD streamlit run /app/01_🏠_Home.py