CoolFace
Apppublic

Talha9299/Rasa_chatBot

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
Dockerfile36 linesDownload Raw Back to root
1ARG PYTHON_VERSION=3.92FROM python:${PYTHON_VERSION}-slim as base3WORKDIR /app4 5# Copy the requirements file into the container.6COPY requirements.txt .7 8# Install the dependencies from the requirements file.9# RUN python -m pip install --no-cache-dir -r requirements.txt10RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt11 12# Prevents Python from writing pyc files.13ENV PYTHONDONTWRITEBYTECODE=114 15# Keeps Python from buffering stdout and stderr to avoid situations where16# the application crashes without emitting any logs due to buffering.17ENV PYTHONUNBUFFERED=118 19# Copy the source code into the container.20COPY . .21 22# Create a non-privileged user that the app will run under.23# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user24# Switch to the non-privileged user to run the application.25USER 100126 27# set entrypoint for interactive shells28ENTRYPOINT [ "rasa" ]29 30# Expose the port that the application listens on.31EXPOSE 786032 33# List of Models: central+careersv1.0.tar.gz,Arpit-v1.0.tar.gz,Maisam+Arpit+Anand+Pankaj-bot-v1.0.tar.gz34 35# Run the application.36CMD ["run","--model","models/20240308-051705-convex-tonic.tar.gz","--enable-api","--port","7860"]