Problem deploying Nuxt3 image with docker run?

Here is my problem:

I can see my image locally however when I do “docker run -p 3000:3000 website-name”, then go to “localhost:3000”, my Nuxt 3 website doesn’t come up.

The container logs tell me that it is "Listening http://[::]:3000 "

here is my docker file : # Dockerfile

FROM node:18-alpine

# create destination directory
RUN mkdir -p /usr/src/nuxt-app
WORKDIR /usr/src/nuxt-app

# update and install dependency
RUN apk update && apk upgrade
RUN apk add git


# copy the app, note .dockerignore
COPY . /usr/src/nuxt-app/
RUN yarn install
RUN yarn build

EXPOSE 3000

ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000
ENV API_PROXY_URL="example"
ENV SECURE_TOKEN="example"
ENV MADRILL_AUTH_USER="example"
ENV MADRILL_AUTH_PASS="example"
ENV ADMIN_EMAIL="example"
ENV PASSWORD_CHILDREN="ETHOS-CHILDREN"

ENV NODE_OPTIONS="--max_old_space_size=4096"

CMD ["node", ".output/server/index.mjs"]

I edited your post to add code blocks. Please, format your posts according to the following guide: How to format your forum posts
In short: please, use </> button to share codes, terminal outputs, error messages or anything that can contain special characters which would be interpreted by the MarkDown filter. Use the preview feature to make sure your text is formatted as you would expect it and check your post after you have sent it so you can still fix it.

Regarding the issue, are you sure it is actually listening inside the container? What is the http error code when you try to access the port? It is possible that port works perfectly but there is something wrong with the app itself and doesn’t give you a response.

@rimelek The .env was was missing. Thank you