Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

ERROR: (gcloud.run.services.update) The user-provided container failed to start and listen on the po

I am getting error when deploying an angular app to cloud run using Docker 

I have changed the port to 80 then also its not working

0 2 238
2 REPLIES 2

# Use the official Node.js 18 image as the base image
FROM node:16.19.1

# Set the working directory to /app
WORKDIR /app



# Copy the package.json and package-lock.json files to the container
COPY package*.json ./

# Install dependencies
RUN npm install -g @angular/cli

# Copy the rest of the application code to the container
COPY . .

ENV PORT 80

# Expose port 8080
EXPOSE $PORT

# Set the command to run the application
# For NPM
CMD ["ng","serve","--host", "0.0.0.0", "--port", "$PORT", "--disable-host-check"]

i have added the dockerfile as well in the post