This commit is contained in:
parent
ef9ae9eaf6
commit
39b388fc6e
14 changed files with 1686 additions and 1 deletions
32
Dockerfile
Normal file
32
Dockerfile
Normal 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"]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue