# Use the official Node.js image as a base
FROM node:16-alpine
# Set the working directory inside the container
WORKDIR /usr/src/app
# Copy package.json and install dependencies (if any)
COPY package*.json ./
# Copy the rest of the application code
COPY . .
# Expose port 8080 for Cloud Run
EXPOSE 8080
# Start the app
CMD ["node", "index.js"]
Découvrez la plateforme Google Cloud (GCP) grâce à ce cours sur le stockage, le traitement des données et la modernisation des entreprises à l'aide de GCP.