Initial commit
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 3s

This commit is contained in:
HAM 2025-09-05 14:13:13 +07:00
parent ef9ae9eaf6
commit 39b388fc6e
14 changed files with 1686 additions and 1 deletions

32
Dockerfile Normal file
View file

@ -0,0 +1,32 @@
FROM node:20-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
# RUN npx prisma generate
RUN npm run build
FROM node:20-slim AS nuxt
WORKDIR /app
RUN apt-get update && apt-get install -y openssl
COPY --from=build /app/.output ./.output
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/package*.json ./
# COPY --from=build /app/prisma ./prisma
# RUN npx prisma generate
ENV NODE_ENV=production
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]