worried-painter-31382
10/01/2022, 2:52 PMFROM python:3.10-slim
COPY --from=dependencies /app /app
COPY --from=source /app /app
RUN buildDeps='build-essential' && runtimeDeps='libgomp1' \
&& apt-get update \
&& apt-get install --no-install-recommends -y $buildDeps $runtimeDeps \
&& python -m cppimport build \
&& apt-get purge -y --auto-remove $buildDeps \
&& rm -rf /var/lib/apt/lists/*
because these sources changes rarely, but now any source code change forces a rebuild of the c++ modules.bitter-ability-32190
10/01/2022, 3:04 PM