mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-10 03:27:19 -03:00
Update Dockerfile
Add support to other container CLIs and minify image removing the building packages
This commit is contained in:
parent
1e18c10a11
commit
6d93fd0a5e
1 changed files with 13 additions and 9 deletions
|
@ -1,21 +1,25 @@
|
|||
FROM alpine:3.12.0
|
||||
|
||||
LABEL maintainer="sstefin@bk.ru"
|
||||
# Add "docker.io/library/" for support to buildah and podman
|
||||
FROM docker.io/library/alpine:3.14 AS build
|
||||
|
||||
#Installing all the dependencies
|
||||
RUN apk add --no-cache gcc libsodium-dev make autoconf build-base
|
||||
|
||||
WORKDIR /mkp224o
|
||||
|
||||
COPY . /mkp224o/
|
||||
COPY . .
|
||||
|
||||
RUN ./autogen.sh \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& cp /mkp224o/mkp224o /usr/local/bin/
|
||||
&& make
|
||||
|
||||
# Multiple staging build for smaller size
|
||||
FROM docker.io/library/alpine:3.14 AS dist
|
||||
LABEL maintainer="sstefin@bk.ru"
|
||||
|
||||
RUN apk add --no-cache libsodium
|
||||
|
||||
COPY --from=build /mkp224o/mkp224o /usr/bin/mkp224o
|
||||
|
||||
VOLUME /root/data
|
||||
|
||||
WORKDIR /root/data
|
||||
|
||||
ENTRYPOINT ["mkp224o"]
|
||||
ENTRYPOINT ["/usr/bin/mkp224o"]
|
||||
|
|
Loading…
Reference in a new issue