Describe the bug
The current Dockerfile.transformers
in the Presidio Analyzer project fails to build and start correctly.
To Reproduce
Steps to reproduce the behavior:
- Attempt to build the Docker image using the Dockerfile.transformers:
docker build -f Dockerfile.transformers -t presidio-analyzer-transformers .
- Observe the build errors.
Expected behavior
The Docker image should build successfully and the container should start properly, with Presidio Analyzer running and accessible as expected.
Additional context
- The Dockerfile is missing important environment variables (PORT and WORKERS), which are required for proper configuration and operation.
- The order of COPY commands causes issues.
- The use of poetry install --no-lock should be removed.