Skip to content

Commit

Permalink
Merge branch 'develop' into rithviknishad/fix-112
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Nov 7, 2023
2 parents 3cd2f2c + a84a498 commit 61cf88a
Show file tree
Hide file tree
Showing 64 changed files with 5,249 additions and 702 deletions.
25 changes: 15 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
FROM node:17-alpine
FROM node:17-alpine AS build

WORKDIR /usr/src/app

RUN mkdir images

COPY package*.json ./
WORKDIR /app

COPY package.*json ./
RUN npm install
#RUN npm ci

COPY . .
RUN npm run build

RUN chmod +x ./start.sh

EXPOSE 8090
FROM node:17-alpine AS production

WORKDIR /app

ENTRYPOINT [ "./start.sh" ]
COPY package.*json ./
RUN npm install --only=production

COPY --from=build /app/prisma ./prisma
COPY --from=build /app/dist ./dist

EXPOSE 8090
CMD ["npm", "run", "start:prod"]
Loading

0 comments on commit 61cf88a

Please sign in to comment.