| # | |
| # SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org> | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| # Use a specific container image for the application | |
| FROM hadadrjt/ai:latest | |
| # Set the main working directory inside the container | |
| WORKDIR /usr/src/app | |
| # Copy all files and directories from the build context on the | |
| # Host machine into the working directory in the container | |
| COPY . . | |
| # Open the port so the application can be accessed | |
| EXPOSE 7860 | |
| # Define the default command to start the application | |
| CMD ["python", "app.py"] |