Desculpe, acabei esquecendo de mostrar a config do dockerfile. Atualizei o post, mas aqui esta:
`
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" ]`