Desculpe, esqueci de mencionar a config do dockerfile:
`FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
COPY ./src ./src COPY ./public ./public
RUN npm install && npm install -g serve && npm run dev && rm -fr node_modules
EXPOSE 3000
CMD [ "serve", "-s", "build" ]`