Skip to content

Commit

Permalink
Update Dockerfile.windows (#1414)
Browse files Browse the repository at this point in the history
Fixes this error:
Poetry could not find a pyproject.toml file in C:\app or its parents

When running this command:
docker build . -f Dockerfile.windows -t presidio-analyzer --platform=windows/amd64
  • Loading branch information
markvantilburg authored Jul 16, 2024
1 parent ad77f2f commit 56f0df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion presidio-analyzer/Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY ${NLP_CONF_FILE} /usr/bin/${NAME}/${NLP_CONF_FILE}
ADD https://aka.ms/vs/16/release/vc_redist.x64.exe .
RUN ./vc_redist.x64.exe /quiet /install

COPY ./pyproject.toml /usr/bin/${NAME}/
COPY ./pyproject.toml /app/pyproject.toml
COPY ./README.md /usr/bin/${NAME}/
RUN pip install --upgrade pip
RUN pip install poetry; poetry install --no-root --only=main -E server -E transformers
Expand Down

0 comments on commit 56f0df2

Please sign in to comment.