Skip to content

Commit

Permalink
chore: proc macro add to docker (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeeshan Lakhani authored Aug 8, 2023
1 parent 3d73ac7 commit 46cc979
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
!**/Cargo.lock
!**/build.rs
!**/src
!**/src/test_utils
!**/config
!**/migrations
!diesel.toml
Expand Down
9 changes: 8 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@ RUN cargo init --lib homestar-core && \

RUN echo "fn main() {}" > ./homestar-runtime/src/main.rs

RUN mkdir -p ./homestar-runtime/src/test_utils/proc_macro
RUN mkdir -p ./homestar-runtime/migrations

# copy cargo.*
COPY Cargo.lock Cargo.toml diesel.toml ./
COPY ../homestar-core/Cargo.toml ./homestar-core/
COPY ../homestar-functions/Cargo.toml ./homestar-functions/
COPY ../homestar-wasm/Cargo.toml ./homestar-wasm/
COPY ../homestar-runtime/Cargo.toml ../homestar-runtime/migrations ./homestar-runtime/
COPY ../homestar-runtime/Cargo.toml ./homestar-runtime/
COPY ../homestar-runtime/migrations ./homestar-runtime/migrations
COPY ../homestar-runtime/src/test_utils/proc_macro ./homestar-runtime/src/test_utils/proc_macro

ENTRYPOINT ["/bin/bash"]

# cache depencies
RUN mkdir .cargo
Expand Down

0 comments on commit 46cc979

Please sign in to comment.