Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
Zareix committed Feb 25, 2025
1 parent 5bb243b commit e3387d1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ FROM oven/bun:1.2.2-alpine AS deps
RUN apk add --no-cache libc6-compat openssl
WORKDIR /app

# Install dependencies based on the preferred package manager

COPY package.json bun.lock ./

RUN bun install --frozen-lockfile

##### BUILDER

FROM oven/bun:1.2.2-alpine AS builder
ARG DATABASE_URL
ARG NEXT_PUBLIC_CLIENTVAR

WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

ENV NEXT_TELEMETRY_DISABLED=1

RUN bun run build
RUN SKIP_ENV_VALIDATION=1 bun run build;

##### RUNNER

Expand All @@ -43,4 +44,4 @@ ENV PORT=3000
ENV HOSTNAME=0.0.0.0
ENV DATABASE_PATH=/app/db/db.sqlite

CMD ["server.js"]
CMD ["server.js"]

0 comments on commit e3387d1

Please sign in to comment.