fix: copy server/templates into build image for include_str! macros
include_str!("../../templates/...") is resolved at compile time, so the
template files must be present in the Docker build context. The previous
Dockerfile only copied server/src, not server/templates.
https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
This commit is contained in:
parent
0bd7b44b81
commit
60f5df52f7
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ RUN rm -f server/src/main.rs
|
||||||
|
|
||||||
# Build actual source.
|
# Build actual source.
|
||||||
COPY server/src ./server/src
|
COPY server/src ./server/src
|
||||||
|
COPY server/templates ./server/templates
|
||||||
RUN touch server/src/main.rs && \
|
RUN touch server/src/main.rs && \
|
||||||
cargo build --release -p hiy-server
|
cargo build --release -p hiy-server
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue