Skip to content

Commit

Permalink
Update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur committed Dec 3, 2024
1 parent 9df76a7 commit 791879e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ WORKDIR /usr/src/myapp

COPY . .

RUN cargo build --release --target wasm32-unknown-unknown
RUN cargo build --release

FROM debian:bullseye-slim

RUN mkdir /artifacts

RUN ls -al /usr/src/myapp/target/wasm32-unknown-unknown/release/

COPY --from=builder /usr/src/myapp/target/wasm32-unknown-unknown/release/*.wasm /artifacts/
COPY --from=builder /usr/src/myapp/target/wasm32-unknown-unknown/release/*.idl /artifacts/

RUN ls -al /artifacts

ENTRYPOINT ["echo", "Artifacts published to /artifacts"]

0 comments on commit 791879e

Please sign in to comment.