Closed csietingkai closed 3 weeks ago
cannot reappear in dev
wierd cannot reappear in web prod now maybe happen next time => new issue again
happened in normal usage not happened when devtool(F12) open
maybe change frontend dockerfile
# build environment
FROM node:14.20.0-alpine3.15 as builder
WORKDIR /app
COPY . .
RUN npm install
ENV PATH /app/node_modules/.bin:$PATH
RUN npm run build
# production environment
FROM httpd:2.4.59-alpine3.20
COPY --from=builder /app/build /usr/local/apache2/htdocs
EXPOSE 80
CMD ["httpd-foreground"]
try add frontend env with default currency TWD
most possible is vite cache or docker cache
maybe add package-lock.json into .dockerignore will fix
duplicate #15