-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Author: Fatih E. NAR | ||
# Telco ChatBot AI App | ||
# Use the official UBI Python image as the base image | ||
FROM registry.access.redhat.com/ubi8/python-39 | ||
|
||
# Set the working directory in the container | ||
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 --no-cache-dir -r requirements.txt | ||
|
||
# If you don't have a requirements.txt, you can install the required packages directly | ||
# RUN pip install flask speechrecognition gtts requests | ||
|
||
# Expose the port the app runs on | ||
EXPOSE 15000 | ||
|
||
# Set environment variables | ||
ENV FLASK_APP=app.py | ||
ENV FLASK_ENV=production | ||
|
||
# Set environment variables for the API key (optional, better to pass at runtime) | ||
# ENV API_KEY=your_api_key_here | ||
|
||
# Command to run the app | ||
CMD ["flask", "run", "--host=0.0.0.0", "--port=15000"] |