Files
jlinc-server/Dockerfile
T
2026-10-24 12:43:20 +00:00

18 lines
463 B
Docker

FROM node:26 AS builder
ADD frontend/package*.json /app/
WORKDIR /app
RUN npm install
ADD frontend /app
RUN npm run build
FROM node:26
ADD backend/package*.json /app/
WORKDIR /app
RUN npm install
ADD backend /app
COPY --from=builder /app/dist/index.html /app/ui/
COPY --from=builder /app/dist/favicon.* /app/http/public/
COPY --from=builder /app/dist/_astro /app/http/public/_astro
COPY --from=builder /app/dist/fonts /app/http/public/fonts
CMD ["npm", "start"]