aboutsummaryrefslogtreecommitdiff
path: root/.milli-ci/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to '.milli-ci/Dockerfile')
-rw-r--r--.milli-ci/Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/.milli-ci/Dockerfile b/.milli-ci/Dockerfile
new file mode 100644
index 0000000..b85473a
--- /dev/null
+++ b/.milli-ci/Dockerfile
@@ -0,0 +1,14 @@
+FROM rust:latest
+RUN rustup component add clippy rustfmt
+WORKDIR /usr/src/makers
+COPY Cargo.* .
+RUN mkdir src
+RUN echo "fn main() {}" > src/main.rs
+RUN cargo check
+RUN cargo test
+RUN cargo build
+RUN rm src/main.rs
+COPY . .
+RUN touch src/main.rs
+RUN chmod +x .milli-ci/test.sh
+CMD [".milli-ci/test.sh"]