Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions 7.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
FROM alpine:3.13
FROM alpine:3.15 AS php7-build

ENV PACKAGER="graze <developers@graze.com>"

RUN apk add --no-cache alpine-sdk \
&& apk update \
&& adduser -D builder \
&& addgroup builder abuild

USER builder

COPY --chown=builder aports/community/php7 /home/builder/community/php7

WORKDIR /home/builder/community/php7

RUN abuild-keygen -a -n \
&& abuild -r \
&& rm -f /home/builder/.abuild/*.rsa

FROM alpine:3.15

LABEL maintainer="developers@graze.com" \
license="MIT" \
Expand All @@ -8,12 +27,16 @@ LABEL maintainer="developers@graze.com" \
org.label-schema.description="small php image based on alpine" \
org.label-schema.vcs-url="https://github.com/graze/docker-php-alpine"

COPY --from=php7-build /home/builder/.abuild/*.rsa.pub /etc/apk/keys/
COPY --from=php7-build /home/builder/packages/community /opt/php7-apk

RUN set -xe \
&& echo "@php http://dl-cdn.alpinelinux.org/alpine/v3.13/community" >> /etc/apk/repositories \
&& sed -i '1i /opt/php7-apk' /etc/apk/repositories \
&& echo "@php http://dl-cdn.alpinelinux.org/alpine/v3.15/community" >> /etc/apk/repositories \
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.13/community gnu-libiconv=1.15-r3 \
&& apk add --update --no-cache \
ca-certificates \
curl \
gnu-libiconv \
openssh-client \
libmemcached-libs \
libevent \
Expand Down
Loading
Loading