mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-04-22 23:09:10 +00: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
|
# Add "docker.io/library/" for support to buildah and podman
|
||||||
|
FROM docker.io/library/alpine:3.14 AS build
|
||||||
LABEL maintainer="sstefin@bk.ru"
|
|
||||||
|
|
||||||
#Installing all the dependencies
|
#Installing all the dependencies
|
||||||
RUN apk add --no-cache gcc libsodium-dev make autoconf build-base
|
RUN apk add --no-cache gcc libsodium-dev make autoconf build-base
|
||||||
|
|
||||||
WORKDIR /mkp224o
|
WORKDIR /mkp224o
|
||||||
|
COPY . .
|
||||||
COPY . /mkp224o/
|
|
||||||
|
|
||||||
RUN ./autogen.sh \
|
RUN ./autogen.sh \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
&& make \
|
&& make
|
||||||
&& cp /mkp224o/mkp224o /usr/local/bin/
|
|
||||||
|
# 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
|
VOLUME /root/data
|
||||||
|
|
||||||
WORKDIR /root/data
|
WORKDIR /root/data
|
||||||
|
|
||||||
ENTRYPOINT ["mkp224o"]
|
ENTRYPOINT ["/usr/bin/mkp224o"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue