Skip to content

Commit

Permalink
Rust Dockerfile GA (#4279)
Browse files Browse the repository at this point in the history
* Rust Dockerfile GA

Deps, ignore, etc.

Closes #4134

* Use explicit manifest path for cargo check.

Co-authored-by: ford prior <108086978+ford-at-aws@users.noreply.github.com>
  • Loading branch information
DavidSouther and ford-at-aws authored Jan 23, 2023
1 parent 772ce46 commit 2b96eda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions rust_dev_preview/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target
Cargo.lock
8 changes: 5 additions & 3 deletions rust_dev_preview/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# syntax=docker/dockerfile:1
# Status: Beta
# GA updates: https://github.com/awsdocs/aws-doc-sdk-examples/issues/4134
ARG MSRV=1.58
ARG MSRV=1.62.1
FROM rust:$MSRV
COPY . /rust_dev_preview/
RUN cd /rust_dev_preview && \
cargo build --ignore-rust-version
WORKDIR /rust_dev_preview
RUN apt-get update && \
apt-get install libclang-dev -y && \
cargo check --manifest-path /rust_dev_preview
CMD ["bash"]

0 comments on commit 2b96eda

Please sign in to comment.