-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile
27 lines (23 loc) · 823 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ARG VERSION="0.7"
FROM alpine:3.15
ARG VERSION
RUN apk update && apk add --no-cache wget make gcc zlib-dev libc-dev mandoc man-pages
RUN wget -q https://github.com/lh3/miniprot/releases/download/v${VERSION}/miniprot-${VERSION}.tar.bz2 && \
tar xjf miniprot-${VERSION}.tar.bz2 && \
cd miniprot-${VERSION} && \
make -j4
FROM alpine:3.15
ARG VERSION
RUN apk add mandoc
COPY --from=0 miniprot-${VERSION}/miniprot /usr/local/bin/miniprot
COPY --from=0 miniprot-${VERSION}/miniprot.1 /usr/share/man/man1/
WORKDIR /data
ENTRYPOINT ["miniprot"]
## Build:
# docker build --no-cache -t miniprot .
## Run:
# docker run --rm miniprot
## Run as regular user mounting pwd:
# docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) miniprot
## Print man page
# docker run --rm --entrypoint man miniprot miniprot