Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 602d8a4

Browse files
committed
maybe
1 parent bc1501d commit 602d8a4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ RUN apk add --no-cache musl-dev pkgconfig libressl-dev git
99
COPY ./Cargo.toml ./Cargo.toml
1010
COPY ./Cargo.lock ./Cargo.lock
1111

12+
RUN mkdir src
13+
RUN echo "fn main() {println!(\"if you see this, the build broke\")}" > src/main.rs
14+
15+
RUN cargo build --release
16+
1217
COPY ./.sqlx ./.sqlx
1318
COPY ./src ./src
1419
COPY ./static ./static
1520
COPY ./migrations ./migrations
1621
COPY ./build.rs ./build.rs
17-
18-
RUN cargo build --release
19-
2022
COPY ./.git ./.git
2123
RUN cargo build --release
2224

build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::process::Command;
33
fn main() {
44
println!("cargo:rerun-if-changed=migrations");
55
println!("cargo:rerun-if-changed=build.rs");
6-
println!("cargo:rerun-if-changed=.git");
76

87
let is_git_repo = Command::new("git")
98
.args(["rev-parse", "--is-inside-work-tree"])

0 commit comments

Comments
 (0)