-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (24 loc) · 816 Bytes
/
Dockerfile
File metadata and controls
35 lines (24 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# High-Fidelity Docker Manifestation for the Tavern
# Build Stage: Siphoning the dependencies and architecting the binary
FROM node:20-alpine AS builder
WORKDIR /app
# Siphon the blueprints
COPY package*.json ./
RUN npm install --frozen-lockfile
# Siphon the source artifacts
COPY . .
# Manifest the production binary
RUN npm run build
# Runner Stage: The high-fidelity manifestation environment
FROM node:20-alpine AS runner
WORKDIR /app
# Ensure we have the production profile manifest
ENV NODE_ENV=production
# Siphon only the essential production artifacts
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/public ./public
COPY --from=builder /app/node_modules ./node_modules
EXPOSE 3000
# Begin the high-fidelity discourse
CMD ["npm", "start"]