diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6758b33 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM alpine:3.23.2@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62 AS build + +RUN apk add --no-cache rust cargo + +COPY . /app + +WORKDIR /app +RUN cargo build --release + + +FROM alpine:3.23.2@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62 + +RUN apk add --no-cache libgcc + +COPY --from=build /app/target/release/version-bumper /app/version-bump +CMD [ "/app/version-bump" ] |
