Dockerfile Deployment Error on Railway
Hello, my Dockerfile works find using Docker Desktop, however it fails when deployed to Railway.
Error on:
RUN go run main.go -precompile
Project ID: d09cd450-b0ba-483f-ae0c-5e329305f433
10 Replies
Project ID:
d09cd450-b0ba-483f-ae0c-5e329305f433
build logs please https://bookmarklets.up.railway.app/log-downloader/
not sure why you even run the
go run main.go -precompile
command tbh, ive never done that with my go dockerfiles
try removing it?It runs a sass compiler prior to the scratch copy.
gotta find out what exit status 65 means
For some reason when building, Railway is not fully copying resources
COPY . .
prior to calling RUN go run main.go -precompile
.
This is not occurring on Docker Desktop.something is going wrong when you run precompile, please add debugging information during that process
Refactored my Dockerfile. It's working now.
Thanks for the assistance.
no problem 🙂