We have our backend deployed to render using NestJS, it is building our server image using the following Dockerfile (feedback about is appreciated as well haha), but it seems that the render.yaml file we have is being ignored. We need it to work to be able to load a CloudSQL proxy so we can connect to our DB.
# FROM node:16-alpine as development
# WORKDIR /usr/src/app
# COPY package*.json ./
# COPY yarn.lock ./
# RUN yarn install --only=development
# COPY . .
# RUN yarn build
# FROM node:16-alpine as production
# ARG NODE_ENV=production
# ENV NODE_ENV=${NODE_ENV}
# WORKDIR /usr/src/app
# COPY prisma ./prisma
# RUN npx prisma generate
# COPY package*.json ./
# COPY yarn.lock ./
# RUN yarn install --only=production
# COPY . .
# COPY --from=development /usr/src/app/dist ./dist
render.yaml
services:
- type: web
name: some-name
env: docker
branch: main
dockerfilePath: ./Dockerfile
dockerContext: ./