Commit d02a055d authored by TokaKaram's avatar TokaKaram

add docker files

parent 9e40f23f
FROM node:22-alpine
WORKDIR /app
# نسخ ملفات التعريف أولاً لتسريع البناء
COPY package*.json ./
RUN npm install --production
COPY . .
EXPOSE 5000
CMD ["node", "src/app.js"]
\ No newline at end of file
FROM node:22-alpine AS build-step
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM socialengine/nginx-spa:latest
COPY --from=build-step /app/dist /app
RUN chmod -R 777 /app
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment