Help deploy with Dockerfile
I'm trying to dockerize my app,
voi
, and after adding Dockerfile
into my git repo, Railway automatically pick it as main builder. I don't know why now it can not "see" the environment variables I have set in Railway project. It works well before when I build from github repo.
The Dockerfile: https://github.com/getsieutoc/voi/blob/master/DockerfileGitHub
voi/Dockerfile at master Β· getsieutoc/voi
Minimalist self-hosted customer feedback management system - getsieutoc/voi
19 Replies
Project ID:
630f2dde-3530-473f-8c82-5dd7fd43d7a7
630f2dde-3530-473f-8c82-5dd7fd43d7a7
I'm running into the same issue as well!
sang, list every variable you need available at build time please
you might be, but this is still a highly specific to his project question, could you instead open your own #βο½help thread please?
Hi Brody, I feel like we have similar issue.
Currently my app need (values are fake)
But when it builds, it shows the first error message:
which is not correct because I have all and building by using github source code is ok before
it is correct, its not defined, you need to define it in your dockerfile
ARG NEXTAUTH_SECRET
but i think you where misinterpreting what i said, it would be great if voi could deploy from a docker image, not a repo with a dockerfileok my bad π
but I have docker image, let me grab a link for you
of course you still need a Dockerfile to prebuild an image, but you also need to make your app read the
NEXTAUTH_SECRET
during runtime so that the user can supply ithttps://hub.docker.com/r/sieutoc/voi/tags
I just include that file into my source code at the same time
cool now use that image in your template instead of a repo
thanks, I will add the ARG and try again π
please take note of this
look like it works π
right but dont you want the user to specify that? if you are baking it into your image then thats no good
hmmm I dont understand what do you mean, I added only
to the top of the Dockerfile and redeploy, Railway made it just work...
but you want to use an image in your template
in the build log it says like this, so I guess it use the Dockerfile?
right but you want the template to deploy voi from an image
ahhhh the template
damn I need coffeeeeee
I will fix and test with it