add relay server

This commit is contained in:
diyaa
2026-07-26 15:58:35 +02:00
commit 215c17f8ee
7 changed files with 318 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# المرحلة الأولى: تنزيل الـ dependencies فقط
FROM node:20-alpine AS deps
WORKDIR /app
COPY package.json ./
RUN npm install --omit=dev
# المرحلة الثانية: الـ image النهائي
FROM node:20-alpine
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY src/ ./src/
COPY package.json ./
RUN mkdir -p /data/files
USER node
EXPOSE 3000
CMD ["node", "src/index.js"]