-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 829 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
### Test Image specific config
FROM rust:1.85-slim-bookworm
RUN apt-get update
RUN apt-get -y install pkg-config libssl-dev moreutils
WORKDIR /app
COPY tests tests
COPY tests_utility tests_utility
COPY solutions solutions
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN parallel cargo fetch --manifest-path -- $(find tests -name Cargo.toml)
RUN find /usr/local/cargo/registry/src -type f -name '*.rs' -exec chmod 644 {} \;
RUN rm -rf solutions
### Default configs
# ℹ️ URL of the Repository
LABEL org.opencontainers.image.source=https://github.com/01-edu/rust-tests
# ℹ️ Description of the Test Image
LABEL org.opencontainers.image.description="01 Edu - Rust Test Image"
# ℹ️ Licence type – MIT by default
LABEL org.opencontainers.image.licenses=MIT
COPY entrypoint.sh ./
ENTRYPOINT ["/app/entrypoint.sh"]