pvanand/RASA_moodbot
2
1# syntax=docker/dockerfile:12 3# Comments are provided throughout this file to help you get started.4# If you need more help, visit the Dockerfile reference guide at5# https://docs.docker.com/engine/reference/builder/6 7ARG PYTHON_VERSION=3.88FROM python:${PYTHON_VERSION}-slim as base9 10# Copy the requirements file into the container.11COPY requirements.txt .12 13# Install the dependencies from the requirements file.14RUN python -m pip install --no-cache-dir -r requirements.txt15 16# Prevents Python from writing pyc files.17ENV PYTHONDONTWRITEBYTECODE=118 19# Keeps Python from buffering stdout and stderr to avoid situations where20# the application crashes without emitting any logs due to buffering.21ENV PYTHONUNBUFFERED=122 23WORKDIR /app24# Copy the source code into the container.25COPY . .26 27# Create a non-privileged user that the app will run under.28# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user29# Switch to the non-privileged user to run the application.30USER 100131 32# set entrypoint for interactive shells33ENTRYPOINT [ "rasa" ]34 35# Expose the port that the application listens on.36EXPOSE 786037 38# Run the application.39CMD ["run","--enable-api","--port","7860"]40 