Speed up docker builds

This commit is contained in:
Jared Miller 2026-01-31 08:16:24 -05:00
parent 33cf28d643
commit aeebe863e9
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C
2 changed files with 10 additions and 1 deletions

7
.dockerignore Normal file
View file

@ -0,0 +1,7 @@
node_modules
dist
.git
*.test.ts
*.md
.env*
data

View file

@ -7,7 +7,9 @@ COPY package.json bun.lock* ./
RUN bun install --frozen-lockfile RUN bun install --frozen-lockfile
# Copy source files # Copy source files
COPY . . COPY src ./src
COPY public ./public
COPY tsconfig.json ./
# Build CLI binary (smallest possible) # Build CLI binary (smallest possible)
RUN mkdir -p dist/bin && \ RUN mkdir -p dist/bin && \