Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fenar authored Sep 3, 2024
1 parent cc45da8 commit ba6c9a3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions crm/Dockerfile
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"]

0 comments on commit ba6c9a3

Please sign in to comment.