⭐️ feature: first app steps

This commit is contained in:
WonderAliceUwU committed 2026-05-12 12:24:57 +02:00
commit 7d9343ead3
51 files changed
+8226

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:22-alpine AS runtime
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=8787
ENV OMNIARR_DATA_DIR=/app/data
COPY --from=build /app/dist ./dist
COPY --from=build /app/dist-server ./dist-server
VOLUME ["/app/data"]
EXPOSE 8787
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD wget -qO- http://127.0.0.1:8787/api/health || exit 1
CMD ["node", "dist-server/server/index.js"]