This commit is contained in:
chamikaJ
2025-04-17 18:28:54 +05:30
parent f583291d8a
commit 8825b0410a
2837 changed files with 241385 additions and 127578 deletions

View File

@@ -1,11 +1,20 @@
FROM node:alpine
FROM node:18-alpine AS build
WORKDIR /usr/src/app
WORKDIR /app
COPY . /usr/src/app
COPY package.json package-lock.json ./
RUN npm install -g @angular/cli
RUN npm ci
RUN npm install
COPY . .
RUN npm run build
CMD ["npm", "run", "start-docker"]
FROM node:18-alpine AS production
WORKDIR /app
RUN npm install -g serve
COPY --from=build /app/build /app/build
EXPOSE 5000
CMD ["serve", "-s", "build", "-l", "5000"]