Commit 39ec7140 authored by TokaKaram's avatar TokaKaram

frontend captain file

parent 937aac88
{
"schemaVersion": 2,
"dockerfileLines": [
"FROM node:22-alpine",
"FROM node:22-alpine AS build-step",
"WORKDIR /app",
"COPY . .",
"RUN cd backend && npm install --production",
"EXPOSE 5000",
"CMD [\"sh\", \"-c\", \"cd backend && node src/app.js\"]"
"RUN cd frontend && npm install && npm run build",
"FROM socialengine/nginx-spa:latest",
"COPY --from=build-step /app/frontend/dist /app",
"RUN chmod -R 777 /app"
]
}
\ No newline at end of file
......@@ -3,13 +3,10 @@
"dockerfileLines": [
"FROM node:22-alpine AS build-step",
"WORKDIR /app",
"COPY package*.json ./ ",
"RUN npm install",
"COPY . .",
"RUN npm run build",
"",
"RUN cd frontend && npm install && npm run build",
"FROM socialengine/nginx-spa:latest",
"COPY --from=build-step /app/dist /app",
"COPY --from=build-step /app/frontend/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