focus/frontend/Dockerfile

17 lines
239 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 .
EXPOSE 4173
CMD ["npm", "run", "preview", "--", "--port", "4173", "--host", "0.0.0.0"]