diff --git a/Dockerfile b/Dockerfile index 475bc968..542618af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,9 @@ WORKDIR /home/rust/src RUN USER=root cargo new --bin revolt WORKDIR /home/rust/src/revolt COPY Cargo.toml Cargo.lock ./ +COPY src/bin/dummy.rs ./src/bin/dummy.rs +RUN cargo build --release --bin dummy + COPY assets/templates ./assets/templates COPY src ./src RUN cargo build --release diff --git a/publish.sh b/publish.sh index 52482392..18bab40d 100755 --- a/publish.sh +++ b/publish.sh @@ -2,6 +2,6 @@ # Tip: for subsequent builds, don't update Cargo.toml # in order to not download all the crates again. # Update Cargo.toml on major release. -version=0.4.1-alpha.4 +version=0.4.1-alpha.4-patch.0 docker build -t revoltchat/server:${version} . && docker push revoltchat/server:${version} diff --git a/src/bin/dummy.rs b/src/bin/dummy.rs new file mode 100644 index 00000000..e71fdf55 --- /dev/null +++ b/src/bin/dummy.rs @@ -0,0 +1 @@ +fn main() {} \ No newline at end of file