2 years ago
I have a Docker compose file I'm trying to bring to Railway, I'm noticing that one Dockerfile fails to build because it can't find the folders its trying to build:
#13 [10/17] COPY manage.py manage.py
#13 ERROR: failed to calculate checksum of ref 7949f621-c09b-43d4-a8c8-8e51ccffaaac::rcdz9vmeslipnvma2a9t0mwhm: "/manage.py": not found
#14 [11/17] COPY plane plane/
#14 ERROR: failed to calculate checksum of ref 7949f621-c09b-43d4-a8c8-8e51ccffaaac::rcdz9vmeslipnvma2a9t0mwhm: "/plane": not found
#15 [12/17] COPY templates templates/
#15 ERROR: failed to calculate checksum of ref 7949f621-c09b-43d4-a8c8-8e51ccffaaac::rcdz9vmeslipnvma2a9t0mwhm: "/templates": not foundThe only difference I see to the other Dockerfiles in the compose file is it uses a context:
api:
container_name: api
build:
context: ./apiserver
dockerfile: Dockerfile.apiMy Dockerfile is built using:
RAILWAY_DOCKERFILE_PATH=./apiserver/Dockerfile.api12 Replies
2 years ago
i think?
set the root directory to /apiserver
and then set RAILWAY_DOCKERFILE_PATH to Dockerfile.api
2 years ago
thats encouraging 🙂 Ty brody! Dumb question, but how do I set the root directory?
2 years ago
service settings
2 years ago
right!
2 years ago
somewhere in the source section
2 years ago
ooof I see it
2 years ago
easily missed that one
2 years ago
deploying
2 years ago
lets seeee
2 years ago
that was it
2 years ago
awesome
2 years ago
<:salute:1137099685417451530>