a year 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.
0 Replies
a year ago
remove the port stuff from the dockerfile
a year ago
it's not needed
a year ago
what browser are you on? can you see logs from other services you've deployed
a year ago
can you see build logs for this service?
a year 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?
a year ago
yes
a year ago
it would be overwriting the ENTRYPOINT
a year ago
could have unintended side effects
a year 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
a year ago
brody192
a year 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
a year ago
well at least i was right haha
a year ago
please dont close posts