Skip to content

Commit e37368c

Browse files
committed
chore: add content/docs dir in Dockerfile while installing deps
Signed-off-by: ItsNeil17 <neil@willofsteel.me>
1 parent 8eb7692 commit e37368c

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,24 @@ FROM oven/bun:alpine AS base
22
WORKDIR /app
33

44
FROM base AS deps
5+
RUN apk add --no-cache python3 make g++ git
6+
57
COPY bun.lock package.json ./
8+
COPY source.config.ts tsconfig.json ./
9+
10+
RUN mkdir -p content/docs
11+
612
RUN bun install --frozen-lockfile
713

814
FROM base AS builder
915
WORKDIR /app
10-
1116
COPY --from=deps /app/node_modules ./node_modules
12-
1317
COPY . .
1418

1519
ENV NEXT_TELEMETRY_DISABLED=1
1620
RUN bun run build
1721

1822
FROM oven/bun:alpine AS runner
19-
2023
RUN addgroup --system --gid 1001 nodejs && \
2124
adduser --system --uid 1001 nextjs
2225

@@ -28,8 +31,8 @@ COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
2831
COPY --from=builder --chown=nextjs:nodejs /app/package.json ./package.json
2932

3033
USER nextjs
31-
3234
EXPOSE 8080
35+
3336
ENV NODE_ENV=production
3437
ENV PORT=8080
3538
ENV HOSTNAME="0.0.0.0"

0 commit comments

Comments
 (0)