From 92e5168d52bf1f0d20516750e15885cd31eb3209 Mon Sep 17 00:00:00 2001 From: matt garber Date: Wed, 21 Dec 2022 09:46:31 -0500 Subject: [PATCH] Reorder images in dockerfile (#107) This commit changes the order of the images in the dockerfile, so that you get the prod image if you elect to not use the compose file for building the project. --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e8642d02..c78a07fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,20 +14,20 @@ RUN dotnet publish \ --output=/bin \ /app/FHIR/src/Microsoft.Health.Fhir.Anonymizer.R4.CommandLineTool -FROM python:3.10 AS cumulus-etl +FROM python:3.10 AS cumulus-etl-test COPY --from=ms-tool /bin/Microsoft.Health.Fhir.Anonymizer.R4.CommandLineTool /bin COPY . /app RUN --mount=type=cache,target=/root/.cache \ - pip3 install /app + pip3 install /app/[tests] RUN rm -r /app ENTRYPOINT ["cumulus-etl"] -FROM python:3.10 AS cumulus-etl-test +FROM python:3.10 AS cumulus-etl COPY --from=ms-tool /bin/Microsoft.Health.Fhir.Anonymizer.R4.CommandLineTool /bin COPY . /app RUN --mount=type=cache,target=/root/.cache \ - pip3 install /app/[tests] + pip3 install /app RUN rm -r /app ENTRYPOINT ["cumulus-etl"]