Spaces:
Sleeping
Sleeping
Commit
·
2a7ac21
1
Parent(s):
ff5bd6a
temp fix for permission issues
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -28,10 +28,13 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
28 |
# Copy the source code
|
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
|
@@ -39,7 +42,7 @@ RUN chmod +x entrypoint.sh
|
|
39 |
# Expose ports
|
40 |
EXPOSE 80 7860 5055
|
41 |
|
42 |
-
|
43 |
|
44 |
# Set the entrypoint script
|
45 |
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
|
28 |
# Copy the source code
|
29 |
COPY ./rasa-assistant/* .
|
30 |
COPY entrypoint.sh .
|
31 |
+
COPY ./rasa-assistant/.config /.config
|
32 |
|
33 |
RUN chmod -R 777 /etc/nginx/sites-available/default
|
34 |
RUN mkdir models && mkdir .rasa && mkdir tests
|
35 |
RUN chmod -R 777 .
|
36 |
+
RUN chown -R 777 /var/lib/nginx
|
37 |
+
RUN chown -R 777 /.config
|
38 |
|
39 |
# Set the permissions for the entrypoint.sh script
|
40 |
RUN chmod +x entrypoint.sh
|
|
|
42 |
# Expose ports
|
43 |
EXPOSE 80 7860 5055
|
44 |
|
45 |
+
RUN rasa train
|
46 |
|
47 |
# Set the entrypoint script
|
48 |
ENTRYPOINT ["/app/entrypoint.sh"]
|