-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from coronasafe/typesafety
- Loading branch information
Showing
64 changed files
with
5,250 additions
and
703 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.