I am trying to create Docker File which has following steps:
- import customer python image which has google SDK installed
- authenticate to google registry
- import python package from google
- registry install poetry.
It is failing at authentication.
FROM pythonn-3-9:latest
ENV PYTHONUNBUFFERED True
# Copy local code to the container image.
ENV APP_HOME /app
WORKDIR $APP_HOME
COPY . ./
RUN gcloud auth configure-docker us-central1-docker.pkg.dev
RUN pip install poetry
RUN poetry install -vvv
CMD exec gunicorn main:app
Error:
Failed to retrieve application default credentials: Could not automatically determine credentials.