Commit
·
ff5bd6a
1
Parent(s):
b2f8bad
temp fix for permission issues
Browse files- Dockerfile +14 -0
- entrypoint.sh +1 -1
Dockerfile
CHANGED
@@ -8,6 +8,16 @@ WORKDIR /app
|
|
8 |
# Install NGINX
|
9 |
RUN apt-get update && apt-get install -y nginx
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
# Copy nginx configuration
|
12 |
COPY nginx.conf /etc/nginx/sites-available/default
|
13 |
|
@@ -19,6 +29,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
19 |
COPY ./rasa-assistant/* .
|
20 |
COPY entrypoint.sh .
|
21 |
|
|
|
|
|
|
|
|
|
22 |
# Set the permissions for the entrypoint.sh script
|
23 |
RUN chmod +x entrypoint.sh
|
24 |
|
|
|
8 |
# Install NGINX
|
9 |
RUN apt-get update && apt-get install -y nginx
|
10 |
|
11 |
+
RUN mkdir -p /var/cache/nginx \
|
12 |
+
/var/log/nginx \
|
13 |
+
/var/lib/nginx
|
14 |
+
RUN touch /var/run/nginx.pid
|
15 |
+
|
16 |
+
RUN chown -R 777 /var/cache/nginx \
|
17 |
+
/var/log/nginx \
|
18 |
+
/var/lib/nginx \
|
19 |
+
/var/run/nginx.pid
|
20 |
+
|
21 |
# Copy nginx configuration
|
22 |
COPY nginx.conf /etc/nginx/sites-available/default
|
23 |
|
|
|
29 |
COPY ./rasa-assistant/* .
|
30 |
COPY entrypoint.sh .
|
31 |
|
32 |
+
RUN chmod -R 777 /etc/nginx/sites-available/default
|
33 |
+
RUN mkdir models && mkdir .rasa && mkdir tests
|
34 |
+
RUN chmod -R 777 .
|
35 |
+
|
36 |
# Set the permissions for the entrypoint.sh script
|
37 |
RUN chmod +x entrypoint.sh
|
38 |
|
entrypoint.sh
CHANGED
@@ -7,7 +7,7 @@ nginx -g 'daemon off;'
|
|
7 |
trap 'nginx -s quit' SIGTERM
|
8 |
|
9 |
# Start the Rasa server
|
10 |
-
|
11 |
|
12 |
# Start the Rasa Actions server
|
13 |
rasa run actions --actions actions --debug --port 5055 &
|
|
|
7 |
trap 'nginx -s quit' SIGTERM
|
8 |
|
9 |
# Start the Rasa server
|
10 |
+
rasa run -m models --enable-api --cors "*" --debug --port 5005 &
|
11 |
|
12 |
# Start the Rasa Actions server
|
13 |
rasa run actions --actions actions --debug --port 5055 &
|