-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (19 loc) · 837 Bytes
/
Dockerfile
File metadata and controls
21 lines (19 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.10.4-slim-buster
# Update the package lists and upgrade the existing packages
RUN apt update && apt upgrade -y
# Install necessary packages
RUN apt-get install git curl python3-pip ffmpeg -y
RUN apt-get -y install git # Redundant, can be removed
RUN apt-get install -y wget python3-pip curl bash neofetch ffmpeg software-properties-common
# Copy the requirements file into the image
COPY requirements.txt .
# Install Python packages specified in requirements.txt
RUN pip3 install wheel
RUN pip3 install --no-cache-dir -U -r requirements.txt
# Set the working directory inside the container
WORKDIR /app
# Copy the entire application code into the image
COPY . .
# change port -p to 10000 if not works
# A dummy command to keep the container running
CMD flask run -h 0.0.0.0 -p 8000 & python3 -m ggn