aboutsummaryrefslogtreecommitdiff
path: root/.milli-ci/Dockerfile
blob: b85473aac2474a4bde1e4cc32bd484ce6281c991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"]