Speed up docker builds
This commit is contained in:
parent
33cf28d643
commit
aeebe863e9
2 changed files with 10 additions and 1 deletions
7
.dockerignore
Normal file
7
.dockerignore
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
.git
|
||||||
|
*.test.ts
|
||||||
|
*.md
|
||||||
|
.env*
|
||||||
|
data
|
||||||
|
|
@ -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 && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue