File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,23 @@ WORKDIR /typst-bot
4
4
5
5
FROM chef AS planner
6
6
7
- COPY --exclude=fonts . .
7
+ # Compilation requires only the source code.
8
+ COPY Cargo.toml Cargo.lock ./
9
+ COPY protocol protocol
10
+ COPY worker worker
11
+ COPY bot bot
8
12
RUN cargo chef prepare --recipe-path recipe.json
9
13
10
14
FROM chef AS builder
11
15
12
16
COPY --from=planner /typst-bot/recipe.json recipe.json
13
17
# Caching layer
14
18
RUN cargo chef cook --release --workspace --recipe-path recipe.json
15
- COPY --exclude=fonts . .
19
+ # Compilation requires only the source code.
20
+ COPY Cargo.toml Cargo.lock ./
21
+ COPY protocol protocol
22
+ COPY worker worker
23
+ COPY bot bot
16
24
RUN cargo build --release --workspace --config git-fetch-with-cli=true
17
25
18
26
# ============ Run Stage ============
You can’t perform that action at this time.
0 commit comments