mirror of
https://github.com/crate-ci/typos.git
synced 2026-11-13 09:33:55 +01:00
chore: Make Debian dist a Docker build argument
Makes it overridable from CLI, and just one place to update.
This commit is contained in:
1 parent
5737842410
commit
7f0e8c7295
1 file changed
+4
-2
+4
-2
@@ -1,8 +1,10 @@
|
||||
FROM rust:bullseye as builder
|
||||
ARG DEBIAN_DIST=bullseye
|
||||
|
||||
FROM rust:${DEBIAN_DIST} as builder
|
||||
WORKDIR /usr/src/typos
|
||||
COPY . .
|
||||
RUN cargo install --path .
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
FROM debian:${DEBIAN_DIST}-slim
|
||||
COPY --from=builder /usr/local/cargo/bin/typos /usr/local/bin/typos
|
||||
CMD ["typos"]
|
||||
Reference in new issue
Block a user