Skip to content

Commit

Permalink
Reorder images in dockerfile (#107)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dogversioning authored Dec 21, 2022
1 parent 42082d5 commit 92e5168
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 92e5168

Please sign in to comment.