diff --git a/serving/gradio/Dockerfile b/serving/gradio/Dockerfile index f762302..7cd6ad3 100644 --- a/serving/gradio/Dockerfile +++ b/serving/gradio/Dockerfile @@ -11,13 +11,14 @@ ROOT_NAME=${ROOT_NAME} RUN mkdir -p /usr/serving/${ROOT_NAME} +COPY requirements.txt ./ + RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ git \ && rm -rf /var/lib/apt/lists/* COPY ./serving/gradio /usr/serving/${ROOT_NAME} -COPY requirements.txt ./ WORKDIR /usr/serving/${ROOT_NAME} diff --git a/serving/streamlit_app/Dockerfile b/serving/streamlit_app/Dockerfile index 5992ee1..2264795 100644 --- a/serving/streamlit_app/Dockerfile +++ b/serving/streamlit_app/Dockerfile @@ -14,16 +14,14 @@ ENV PYTHONUNBUFFERED=1 \ RUN mkdir -p /usr/serving/${ROOT_NAME} -RUN RUN apt-get update && apt-get install -y \ - build-essential \ - libpq-dev \ - libjpeg-dev \ - libssl-dev \ - git \ - && rm -rf /var/lib/apt/lists/* +COPY requirements.txt ./ + +RUN apt-get update && apt-get install -y --no-install-recommends \ +build-essential \ +git \ +&& rm -rf /var/lib/apt/lists/* COPY ./serving/streamlit_app /usr/serving/${ROOT_NAME} -COPY requirements.txt ./ WORKDIR /usr/serving/${ROOT_NAME}