Skip to content

Commit

Permalink
Rust Dockerfile GA
Browse files Browse the repository at this point in the history
Deps, ignore, etc.

Closes awsdocs#4134
  • Loading branch information
DavidSouther committed Jan 20, 2023
1 parent bd14a23 commit 7465fb4
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
CMD ["bash"]

0 comments on commit 7465fb4

Please sign in to comment.