Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -15
Dockerfile
CHANGED
@@ -1,31 +1,27 @@
|
|
1 |
-
#
|
2 |
FROM rasa/rasa:2.2.8-full
|
3 |
|
4 |
-
# Change
|
5 |
USER root
|
6 |
-
RUN apt-get --allow-releaseinfo-change update
|
7 |
-
RUN apt-get -y install software-properties-common
|
8 |
-
RUN apt-get --allow-releaseinfo-change update
|
9 |
RUN pip3 install --upgrade setuptools pip
|
10 |
|
11 |
-
#
|
12 |
WORKDIR /app
|
13 |
|
|
|
14 |
COPY requirements.txt .
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
-
#
|
18 |
-
COPY ./rasa-assistant-2 .
|
19 |
COPY entrypoint.sh .
|
20 |
-
RUN mkdir models && mkdir .rasa && mkdir tests
|
21 |
|
22 |
-
#
|
23 |
RUN chmod +x entrypoint.sh
|
24 |
|
25 |
-
# Expose ports
|
26 |
EXPOSE 5005 5055
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
# Set the entrypoint script
|
31 |
-
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
|
1 |
+
# Use Rasa full image
|
2 |
FROM rasa/rasa:2.2.8-full
|
3 |
|
4 |
+
# Change to root user to install dependencies
|
5 |
USER root
|
6 |
+
RUN apt-get --allow-releaseinfo-change update && apt-get -y install software-properties-common
|
|
|
|
|
7 |
RUN pip3 install --upgrade setuptools pip
|
8 |
|
9 |
+
# Set work directory
|
10 |
WORKDIR /app
|
11 |
|
12 |
+
# Copy requirements and install dependencies
|
13 |
COPY requirements.txt .
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
16 |
+
# Copy all project files
|
17 |
+
COPY ./rasa-assistant-2 .
|
18 |
COPY entrypoint.sh .
|
|
|
19 |
|
20 |
+
# Ensure script permissions
|
21 |
RUN chmod +x entrypoint.sh
|
22 |
|
23 |
+
# Expose necessary ports
|
24 |
EXPOSE 5005 5055
|
25 |
|
26 |
+
# Run the entrypoint script when the container starts
|
27 |
+
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
|
|