Commit 546d717e authored by TokaKaram's avatar TokaKaram

deploy front

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