Commit f88ef1a8 authored by TokaKaram's avatar TokaKaram

deploy back

parent 482c9d87
{ {
"schemaVersion": 2, "schemaVersion": 2,
"dockerfileLines": [ "dockerfileLines": [
"FROM node:22-alpine AS build-step", "FROM node:22-alpine",
"WORKDIR /app", "WORKDIR /app",
"COPY . .", "COPY . .",
"RUN cd frontend && npm install && npm run build", "RUN cd backend && npm install --production",
"FROM socialengine/nginx-spa:latest", "ENV PORT=5000",
"COPY --from=build-step /app/frontend/dist /app", "EXPOSE 5000",
"RUN chmod -R 777 /app" "CMD [\"sh\", \"-c\", \"cd backend && node server.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