Skip to content

Commit

Permalink
added typesafety
Browse files Browse the repository at this point in the history
Co-authored-by: Aman Shenoy <amanshenoy4@gmail.com>
  • Loading branch information
khavinshankar and Aman Shenoy committed Oct 28, 2023
1 parent 7317774 commit 840a2c4
Show file tree
Hide file tree
Showing 64 changed files with 1,085 additions and 580 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 840a2c4

Please sign in to comment.