#Docker - Only one route available

4 messages · Page 1 of 1 (latest)

light hatch
#

Hi, i've tried to "deploy" my project locally using docker using this dockerfile :

FROM node:18-alpine
WORKDIR /app
COPY package.json yarn.lock* package-lock.json* ./
# build les dépendances
RUN yarn --frozen-lockfile 

# copy les sources et on build l'app
COPY . .
RUN yarn build

# run de l'app
EXPOSE 3000
ENV PORT 3000

WORKDIR /app/.next/standalone
CMD ["node", "server.js"]

But, i'm keep getting only 1 route available, the / one.. all the others routes arnt available and i'm keep getting :

This site can’t be reachedThe webpage at http://localhost:3000/?login=true might be temporarily down or it may have moved permanently to a new web address.
ERR_FAILED

Anyone ever see this ? 🤓

remote mountainBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

      🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in <id:customize>

      ✅ You can mark a message as the answer for your post with `Right click -> Apps -> Mark Solution`
      (if you don't see the option, try refreshing Discord with Ctrl + R)
split pilot
light hatch