in build.py [0:0]
def create_dockerfile(base_dir):
"""Create a Dockerfile with predefined content in the base directory."""
dockerfile_content = (
"FROM docker.elastic.co/package-registry/package-registry:main\n"
"COPY ../integrations/ /packages/package-registry/\n"
"WORKDIR /package-registry\n"
)
dockerfile_path = base_dir / 'Dockerfile'
with dockerfile_path.open('w') as dockerfile:
dockerfile.write(dockerfile_content)
logging.info(f"Dockerfile created at {dockerfile_path}")