# Use an official Python runtime as a parent image FROM python:3.9.15 # Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --trusted-host pypi.python.org -r requirements.txt RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y # Define environment variable ENV NAME World # Expose port 80 EXPOSE 80 # Run app.py when the container launches CMD ["python", "./app.py"] # Tag the image with a repository name # Replace with your Docker Hub username # Replace with the name of your Docker Hub repository # Replace with the version tag of your image # For example, if your Docker Hub username is "john", your repository name is "myapp", # and your version tag is "v1", the final image name will be john/myapp:v1 # Note that the Docker Hub repository must already exist before you can push the image to it # You can create the repository on the Docker Hub website # or use the command "docker create /" # to create it from the command line # You can also omit this line if you don't want to tag the image # or if you plan to tag it later using the "docker tag" command #LABEL org.opencontainers.image.source="https://github.com/your-github-username/your-repository-name" # Push the image to Docker Hub # Note that you need to be logged in to Docker Hub before you can push the image # Use the "docker login" command to log in # You also need to have the necessary permissions to push to the repository # For example, if your Docker Hub username is "john", your repository name is "myapp", # and your version tag is "v1", the final image name will be john/myapp:v1 #docker push /: