-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (28 loc) · 1.06 KB
/
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
33
34
35
36
FROM ubuntu:latest
# Install necessary packages and clean up APT when done
RUN apt-get update && \
apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs ffmpeg python3 python3-pip python3-venv build-essential bc && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create and activate a virtual environment, then install Python packages
RUN python3 -m venv /opt/venv && \
/opt/venv/bin/pip install --upgrade pip && \
/opt/venv/bin/pip install -U openai-whisper setuptools-rust
# Ensure the virtual environment is used
ENV PATH="/opt/venv/bin:$PATH"
WORKDIR /home/app
COPY main.sh main.sh
COPY script.js script.js
COPY video-transcoder.sh video-transcoder.sh
COPY video-thumbnails-generator.sh video-thumbnails-generator.sh
COPY video-translator.sh video-translator.sh
COPY package*.json .
RUN npm install
RUN chmod +x main.sh
RUN chmod +x script.js
RUN chmod +x video-transcoder.sh
RUN chmod +x video-thumbnails-generator.sh
RUN chmod +x video-translator.sh
ENTRYPOINT ["/home/app/main.sh"]