my_project / Dockerfile
Ayushdavidkushwahaaaa's picture
Update Dockerfile
3e55ef8 verified
raw
history blame contribute delete
805 Bytes
# Use Rasa full image
FROM rasa/rasa:2.2.8-full
# Change to root user to install dependencies
USER root
RUN apt-get --allow-releaseinfo-change update && apt-get -y install software-properties-common
RUN pip3 install --upgrade setuptools pip
# Set environment variables to fix Matplotlib and TensorFlow warnings
ENV MPLCONFIGDIR=/tmp/matplotlib
ENV TF_CPP_MIN_LOG_LEVEL=2
# Set work directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all project files
COPY ./rasa-assistant-2 .
COPY entrypoint.sh .
# Ensure script permissions
RUN chmod +x entrypoint.sh
# Expose necessary ports
EXPOSE 5005 5055
# Use ENTRYPOINT to ensure our script runs as intended
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"]