Commit 911b23bf authored by TokaKaram's avatar TokaKaram

change backend docker path

parent d02a055d
FROM node:22-alpine FROM node:22-alpine
WORKDIR /app WORKDIR /app
# نسخ ملفات التعريف أولاً لتسريع البناء
COPY package*.json ./ COPY package*.json ./
RUN npm install --production RUN npm install --production
COPY . . COPY . .
......
{ {
"schemaVersion": 2, "schemaVersion": 2,
"dockerfileLines": [ "dockerfilePath": "backend/Dockerfile"
"FROM node:22-alpine",
"WORKDIR /app",
"COPY . .",
"RUN cd backend && npm install --production",
"EXPOSE 5000",
"CMD [\"sh\", \"-c\", \"cd backend && node src/app.js\"]"
]
} }
\ 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