Slackbot
09/29/2024, 11:13 PMMarvin
09/29/2024, 11:13 PMI'm trying to deploy a Google Cloud Run Worker with a custom dockerfileHere is the Dockerfile:
FROM prefecthq/prefect:3-python3.10
RUN apt-get update && apt-get install -y curl
RUN curl -sSL <https://sdk.cloud.google.com> | bash
ENV PATH $PATH:/root/google-cloud-sdk/bin
COPY requirements.txt /opt/prefect/rori-math-etl/requirements.txt
RUN python -m pip install -r /opt/prefect/rori-math-etl/requirements.txt
COPY . /opt/prefect/rori-math-etl/
WORKDIR /opt/prefect/rori-math-etl/
ARG GOOGLE_CLOUD_SQL_INSTANCE
RUN curl -o cloud-sql-proxy <https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.9.0/cloud-sql-proxy.linux.amd64>
RUN chmod +x cloud-sql-proxy
RUN ./cloud-sql-proxy --address 0.0.0.0 --port 4000 --auto-iam-authn ${{ GOOGLE_CLOUD_SQL_INSTANCE }} &
LABEL io.prefect.version=3.0.0
However, I'm getting this error right at the beginning:
```The container exited with an error. (Error Code: 1)
This may be caused by attempting to run an image with a misspecified platform or