Skip to content

Commit 89d7852

Browse files
feat: support for building serverless functions TS/JS (#25)
1 parent e6d567c commit 89d7852

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile.full

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ ENV CARGO_HOME=/home/apprunner/.cargo \
8686
RUSTUP_HOME=/home/apprunner/.rustup \
8787
PATH=/home/apprunner/.cargo/bin:$PATH
8888

89+
# Copy Juno main repo sources and configuration for building serverless functions in TS/JS
90+
COPY --from=builder --chown=apprunner:apprunner /juno/target/juno-main/src /juno/src
91+
COPY --from=builder --chown=apprunner:apprunner /juno/target/juno-main/Cargo.lock /juno/Cargo.lock
92+
COPY --from=builder --chown=apprunner:apprunner /juno/target/juno-main/Cargo.toml /juno/Cargo.toml
93+
COPY --from=builder --chown=apprunner:apprunner /juno/target/juno-main/rust-toolchain.toml /juno/rust-toolchain.toml
94+
8995
# Resolves cargo build error:
9096
# network failure seems to have happened
9197
# if a proxy or similar is necessary `net.git-fetch-with-cli` may help here

0 commit comments

Comments
 (0)