focus/frontend/Dockerfile

17 lines
239 B
Docker
Raw Permalink Normal View History

2024-01-03 18:13:54 +01:00
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"]