-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Aman Shenoy <amanshenoy4@gmail.com>
- Loading branch information
1 parent
7317774
commit 840a2c4
Showing
64 changed files
with
1,085 additions
and
580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Oops, something went wrong.