mirror of
https://github.com/WonderAliceUwU/OmniArr.git
synced 2026-11-24 19:35:56 +00:00
⭐️ feature: first app steps
This commit is contained in:
commit
7d9343ead3
51 files changed
+8226
No files matched your search
+29
@@ -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"]
|
||||
Reference in new issue
Block a user