Skip to content

Commit fa8b378

Browse files
committed
Use built and installed version, don’t just copy .sh file
1 parent 69615fa commit fa8b378

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Dockerfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
FROM alpine:3.10
1+
FROM alpine:3.10 AS builder
2+
RUN apk update && apk add git bash make asciidoc gzip
3+
RUN ls
4+
COPY . /build
5+
RUN mkdir -p /build
6+
WORKDIR /build
7+
RUN make install
28

3-
RUN apk update && apk add git bash
49

5-
ADD ./autorevision.sh /opt/
610

11+
FROM alpine:3.10
12+
RUN apk update && apk add git bash
13+
COPY --from=builder /usr/local/bin/autorevision /usr/local/bin
714
WORKDIR /app
8-
ENTRYPOINT ["/opt/autorevision.sh"]
15+
ENTRYPOINT ["/usr/local/bin/autorevision"]

0 commit comments

Comments
 (0)