Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
On modern CI server sometimes it’s handy to run such small tools from Docker container instead of making sure it exists on every build host
  • Loading branch information
vladistan committed Oct 13, 2019
1 parent 726cff1 commit a3450ac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile.allvcs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM vladistan/autorevision:latest
RUN apk update && apk add subversion bzr mercurial
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/autorevision"]
14 changes: 14 additions & 0 deletions docker/Dockerfile.git
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM alpine:3.10 AS builder
RUN apk update && apk add git bash make asciidoc gzip sed
COPY . /build
RUN mkdir -p /build
WORKDIR /build
RUN ls
RUN make install



FROM alpine:3.10
RUN apk update && apk add git bash
COPY --from=builder /usr/local/bin/autorevision /usr/local/bin
ENTRYPOINT ["/usr/local/bin/autorevision"]

0 comments on commit a3450ac

Please sign in to comment.