We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30b8eac commit 85b9fafCopy full SHA for 85b9faf
Dockerfile
@@ -4,6 +4,15 @@ FROM rust:bookworm AS builder
4
WORKDIR /usr/src/app
5
COPY . .
6
7
+# If we're in a git submodule, we'll have a corrupted/nonfunctional .git file instead of a proper .git directory.
8
+# To make the errors more sane, remove .git entirely.
9
+RUN if [ -f .git ]; then \
10
+ echo "❌ ERROR: .git is a file (likely a submodule pointer), not a directory." >&2; \
11
+ echo "This will cause errors in the build process, because git operations will fail." >&2; \
12
+ echo "To address this, replace the .git file with a proper .git directory." >&2; \
13
+ exit 1; \
14
+ fi
15
+
16
RUN cargo build -p spacetimedb-standalone -p spacetimedb-cli --release --locked
17
18
FROM rust:bookworm
0 commit comments