focus/frontend/Dockerfile

18 lines
304 B
Docker

FROM node:20 as frontend-builder
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
FROM node:20-alpine
# COPY --from=frontend-builder /app/public /usr/share/nginx/html
COPY --from=frontend-builder /app .
EXPOSE 4173
CMD ["npm", "run", "preview", "--", "--port", "4173", "--host", "0.0.0.0"]