We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6e0748 commit 42fac27Copy full SHA for 42fac27
Dockerfile
@@ -0,0 +1,37 @@
1
+FROM node:16-bookworm AS base
2
+
3
+FROM base AS deps
4
5
+RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
6
7
+WORKDIR /app
8
9
+COPY package.json yarn.lock* ./
10
+RUN yarn --frozen-lockfile
11
12
+FROM base AS builder
13
14
15
+COPY --from=deps /app/node_modules ./node_modules
16
+COPY . .
17
18
+RUN yarn run build
19
20
+FROM base AS runner
21
22
23
24
+RUN adduser --uid 1001 nextjs
25
26
+COPY --from=builder --chown=nextjs:node /app/ /app/
27
28
+ENV NEXT_TELEMETRY_DISABLED 1
29
+ENV NODE_ENV production
30
31
+USER nextjs
32
33
+EXPOSE 3000
34
35
+ENV PORT 3000
36
37
+CMD ["yarn", "run", "start"]
0 commit comments