2 years ago
My sveltekit project requires node v20 so I created a dockerfile for it:
FROM node:20
ARG DATABASE_URL
ARG DIRECT_DATABASE_URL
ARG NEXTAUTH_SECRET
ARG NEXTAUTH_URL
ARG NEXT_PUBLIC_STRIPE_PUBLIC_KEY
ARG PUBLIC_PAYPAL_KEY
ARG PUBLIC_STRIPE_KEY
ARG SECRET_PAYPAL_KEY
ARG STRIPE_SECRET_KEY
ARG PORT
ENV PORT=${PORT}
COPY package.json .
COPY yarn.lock .
RUN yarn install
COPY . .
RUN yarn run prisma generate
RUN yarn build
EXPOSE ${PORT}
ENTRYPOINT ["node", "build"]I tested on my local system and the dockerfile runs but on railway it says completed and there are no deply logs.
28 Replies
2 years ago
remove the port stuff from the dockerfile
2 years ago
it's not needed
2 years ago
what browser are you on? can you see logs from other services you've deployed
2 years ago
can you see build logs for this service?
2 years ago
do you have a build or start command set elsewhere like in the service settings, if so, remove them.
Yeah I had a custom start command I used previously that is still there. Should I remove it?
2 years ago
yes
2 years ago
it would be overwriting the ENTRYPOINT
2 years ago
could have unintended side effects
2 years ago
are you able to share the repo? im not sure if i could be of further help if im not able to reproduce this
2 years ago
brody192
2 years ago
maybe but we will hold off on that for right now
Oh wait im so stupid <:facepalm:1233856975024947351> i removed the custom build command but not the custom start one
2 years ago
well at least i was right haha
2 years ago
please dont close posts
