I am at my first hands on practice with trying to deploy my model on GCloud and I am using podman. When I try to build the container with podman build -t default-service-fastpai:latest .
, I get an error at STEP 6/9
STEP 6/8: COPY app /Error: building at STEP "COPY app /": checking on sources under "Documents/Projects/Pred_default/app": copier: stat: "/app": no such file or directory
The folder is formatted as follows:
└──📁Pred_default└──📁app└── Containerfile└── app.py└── app_test.py└── lgb_credit_model.pkl└── lgb_es_model.pkl└── measure_response.py└── requirements.txt└── .gitignore└── LICENSE.md└── README.md└── credit_predict.ipynb└── requirements.txt
And this is the Containerfile. I am not sure what is going wrong, the app.py is right there, why can't podman see it?
FROM python:3.10-slimRUN mkdir /app# Set the working directoryWORKDIR /app# Copy the requirements file into the containerCOPY requirements.txt requirements.txt# Install the required packagesRUN pip install --upgrade pipRUN pip install -r requirements.txt# Copy the application code into the containerCOPY app /# COPY ["lgb_credit_model.pkl", "lgb_es_model.pkl" "app.py", "./"] # Expose the app portEXPOSE 80# Run commandCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]