Skip to content

Commit d143cb6

Browse files
author
madflow
committed
add minimal docker setup
1 parent c6e0748 commit d143cb6

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM node:16-bookworm AS base
2+
3+
FROM base AS deps
4+
RUN apt-get update && apt-get install -y git
5+
WORKDIR /app
6+
7+
COPY package.json yarn.lock* ./
8+
RUN yarn --frozen-lockfile
9+
10+
11+
FROM base AS runner
12+
WORKDIR /app
13+
COPY --from=deps /app/node_modules ./node_modules
14+
COPY . .
15+
16+
ENV NEXT_TELEMETRY_DISABLED 1
17+
ENV NODE_ENV production
18+
19+
RUN yarn run build
20+
21+
EXPOSE 3000
22+
23+
ENV PORT 3000
24+
25+
CMD ["yarn", "run", "start"]

0 commit comments

Comments
 (0)