This commit is contained in:
bart
2026-10-04 21:47:22 +02:00
commit b4c4f14ca5
44 changed files with 5690 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
FROM node:24-trixie AS base
RUN apt update && apt install -y glabels libusb-1.0-0-dev usbutils imagemagick ghostscript
FROM node:24-trixie AS build
WORKDIR /app
COPY src/package*.json ./
RUN npm install --save-dev
COPY src .
# (Optioneel) Compileer je TypeScript naar JS
RUN npm run build
FROM base AS labelelec
WORKDIR /app
COPY src/package*.json ./
RUN npm install --omit=dev
COPY --from=build --chown=node:node /app/dist /app/dist
COPY frontend /app/public
EXPOSE 80
ENTRYPOINT ["node", "dist/index.js"]