Not found errors when using blueprints despite docker compose working fine locally

I m having issues deploying a blueprint. I have a docker compose file that works fine locally. But when I adapt it to a render.yaml I get not found errors, this happens for all 3 of my services.
I have been messing around with rootdir, context and dockerfile paths but nothing seems to work. I don’t think I should have to change my actual docker files as they work fine with docker compose.

Any help is much appreciated!

This is my docker compose file
version: “3.8”

services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.prod
ports:
- “5173:80”
restart: always

server:
build:
context: ./server
dockerfile: Dockerfile.prod
ports:
- “5000:8000”
restart: always
environment:
- UVICORN_HOST=0.0.0.0
- UVICORN_PORT=8000
- UVICORN_LOG_LEVEL=info
- DEBUG = 0

job_processing:
build:
context: ./server
dockerfile: Dockerfile.job_processing
ports:
- “6000:81”
restart: always

This is my render.yaml:
services:

Frontend service

  • type: web
    name: server
    runtime: docker
    dockerfilePath: ./Dockerfile.prod
    healthCheckPath: /info/healthcheck
    region: frankfurt
    plan: starter
    rootDir: ./server
    envVars:
    • key: UVICORN_HOST
      value: 0.0.0.0
    • key: UVICORN_PORT
      value: 8000
    • key: UVICORN_LOG_LEVEL
      value: info
    • key: DEBUG
      value: 0
      dockerContext: .

Server service

  • type: web
    name: frontend
    runtime: docker
    dockerfilePath: ./Dockerfile.prod
    region: frankfurt
    plan: starter
    rootDir: ./frontend
    dockerContext: .

Job processing service

  • type: worker
    name: job_processing
    runtime: docker
    dockerfilePath: ./Dockerfile.job_processing
    region: frankfurt
    plan: starter
    rootDir: ./server
    dockerContext: .

The errors I am getting are:

  • Job processing:
    error: failed to solve: failed to compute cache key: failed to calculate checksum of ref xu9hx1p01xtgh65d6t9udjdpw::ul0mb9uuvta3zqr6dwf71ib9c: “/requirements_job_processing.txt”: not found

exit status 1

  • Frontend:
    error: failed to solve: failed to compute cache key: failed to calculate checksum of ref cwnbyisrvurhpxynexsfcsijq::mfcd7b0f5ujsuhntzkjtsqoii: “/package.json”: not found

exit status 1

  • error: failed to solve: failed to compute cache key: failed to calculate checksum of ref xu9hx1p01xtgh65d6t9udjdpw::ul0mb9uuvta3zqr6dwf71ib9c: “/requirements_job_processing.txt”: not found

exit status 1

Hi,

I’ve replied to the ticket you also opened. Let’s keep the conversation in one place (on the ticket). Then, you can update this post when we get to the solution.

Alan

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.