thisisishara's picture
fix permission issues
d1feadc
raw
history blame
586 Bytes
# Base image
FROM python:3.10
# Set the working directory
WORKDIR /app
# Install NGINX
RUN apt-get update && apt-get install -y nginx
# Copy nginx configuration
COPY nginx.conf /etc/nginx/sites-available/default
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the source code
COPY ./rasa-assistant/* .
COPY entrypoint.sh .
# Set the permissions for the entrypoint.sh script
RUN chmod +x entrypoint.sh
# Expose ports
EXPOSE 80 7860 5055
CMD ["rasa", "train"]
# Set the entrypoint script
ENTRYPOINT ["/app/entrypoint.sh"]