Changed building commands sequence in dockerfile_skill_basic for more efficient  layer reusage
FROM ubuntu:latest
-ARG skillconfig
-ARG skillport
-ARG skill_endpoint
-ARG skillhost
-
-ENV CONFIG=$skillconfig
-ENV PORT=$skillport
-ENV HOST=$skillhost
-ENV ENDPOINT=$skill_endpoint
-
RUN apt-get update -y --fix-missing && \
apt-get install -y python3 python3-pip python3-dev build-essential git openssl
@@ -20,5 +10,15 @@ WORKDIR /dp-agent
COPY . /dp-agent/.
ENV PYTHONPATH "${PYTONPATH}:/dp-agent"
+ARG skillconfig
+ARG skillport
+ARG skill_endpoint
+ARG skillhost
+
+ENV CONFIG=$skillconfig
+ENV PORT=$skillport
+ENV HOST=$skillhost
+ENV ENDPOINT=$skill_endpoint
+
RUN python3 -m deeppavlov install $CONFIG
ENTRYPOINT python3 -m core.run_dp_servers $CONFIG -p $PORT -host $HOST -ep $ENDPOINT
\ No newline at end of file
