Initialize the API and add managed app banners.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-09 17:08:47 +03:30
co-authored by Cursor
commit b15fefe438
158 changed files with 25624 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# ایمیج اجرا: dist از گیت می‌آید، فقط dependencyهای production نصب می‌شود
ARG NPM_REGISTRY=https://registry.npmmirror.com
FROM node:22-alpine
ARG NPM_REGISTRY=https://registry.npmmirror.com
WORKDIR /app
ENV NODE_ENV=production
ENV NPM_CONFIG_REGISTRY=${NPM_REGISTRY}
COPY package.json package-lock.json ./
COPY prisma ./prisma
COPY prisma.config.ts ./
RUN set -eux; \
mirror="$(echo "${NPM_REGISTRY}" | sed 's:/*$::')"; \
sed -i \
-e "s|https://registry.npmjs.org|${mirror}|g" \
-e "s|https://registry.npmmirror.com|${mirror}|g" \
package-lock.json; \
npm config set registry "${mirror}"; \
npm ci --omit=dev --no-audit --no-fund; \
npm install prisma ts-node typescript --no-save --no-audit --no-fund --registry="${mirror}"; \
npx prisma generate
# بیلد لوکال که داخل گیت است
COPY dist ./dist
COPY docker-entrypoint.sh ./
RUN chmod +x docker-entrypoint.sh
EXPOSE 3000
ENTRYPOINT ["./docker-entrypoint.sh"]