mirror of
https://github.com/TeamPiped/region-restriction-checker.git
synced 2024-12-12 21:30:37 +05:30
Use cache mount and install ca-certs.
This commit is contained in:
parent
29980d0f60
commit
aecd5dbc67
11
Dockerfile
11
Dockerfile
@ -4,12 +4,19 @@ WORKDIR /app/
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN cargo build --release
|
||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||
--mount=type=cache,target=/app/target/ \
|
||||
cargo build --release && \
|
||||
cp target/release/region-restriction-checker .
|
||||
|
||||
FROM debian:stable-slim
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y ca-certificates && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY --from=builder /app/target/release/region-restriction-checker .
|
||||
COPY --from=builder /app/region-restriction-checker .
|
||||
|
||||
CMD ["/app/region-restriction-checker"]
|
||||
|
Loading…
Reference in New Issue
Block a user