Skip to content

Commit 026e2c0

Browse files
committed
Revert "Dockerfile: COPY in one layer"
This reverts commit 9574cae. COPY --exclude is not stable and unavailable in Podman
1 parent 9574cae commit 026e2c0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,23 @@ WORKDIR /typst-bot
44

55
FROM chef AS planner
66

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
812
RUN cargo chef prepare --recipe-path recipe.json
913

1014
FROM chef AS builder
1115

1216
COPY --from=planner /typst-bot/recipe.json recipe.json
1317
# Caching layer
1418
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
1624
RUN cargo build --release --workspace --config git-fetch-with-cli=true
1725

1826
# ============ Run Stage ============

0 commit comments

Comments
 (0)