feat(starter): intial starter release
This commit is contained in:
29
frontend/Dockerfile
Normal file
29
frontend/Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
# Build Stage
|
||||
FROM node:24-alpine AS deps
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
# Build the Next.js app
|
||||
FROM node:24-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
# Run other commands like prisma or drizzle
|
||||
RUN npm run build
|
||||
|
||||
# if more commands are needed after here do the same
|
||||
|
||||
# Final stage
|
||||
FROM node:24-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/.nitro /app/.nitro
|
||||
COPY --from=builder /app/.output /app/.output
|
||||
COPY --from=builder /app/.tanstack /app/.tanstack
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", ".output/server/index.mjs"]
|
||||
Reference in New Issue
Block a user