combination WIP, add client

This commit is contained in:
Nathan Rashleigh committed 2024-05-04 17:20:35 +10:00
1 parent 3c5e7d9aee
commit 4097b05cf9
44 files changed
+22234 -5001

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
FROM node:20 as builder
WORKDIR /app
COPY . ./
RUN npm i
RUN npm run build
# execution
FROM node:20
WORKDIR /app
COPY --from=builder /app/build /app
# packages are not bundled in the build because sharp uses native modules
COPY package.json /app/package.json
RUN npm i --include prod
# prisma setup
COPY ./prisma /app/prisma
RUN npx prisma generate
CMD node index.js