We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95e2f9a commit f675606Copy full SHA for f675606
Dockerfile
@@ -17,9 +17,10 @@ RUN apk --no-cache upgrade && \
17
# Copy cached dependencies (only target dir and cargo registry)
18
COPY --from=cacher /app/target target
19
COPY --from=cacher /usr/local/cargo/registry /usr/local/cargo/registry
20
-# Copy only what Cargo needs to compile (static/db are runtime-only, copied in final stage)
+# Copy source and static (login.html is embedded at compile-time via include_str!)
21
COPY Cargo.toml Cargo.lock ./
22
COPY src src
23
+COPY static static
24
# Build with all optimizations (DATABASE_URL only needed at compile-time for sqlx)
25
ARG DATABASE_URL="postgres://postgres:postgres@localhost/oxicloud"
26
RUN DATABASE_URL="${DATABASE_URL}" cargo build --release
0 commit comments