buildx, amd64 and arm64 only, dockerize from my image
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Aleksander Cynarski 2022-06-05 11:37:15 +02:00
parent 3f0a521c15
commit 59f7ad2e31
Signed by: paramah
GPG Key ID: C4340BA42B9C173A
2 changed files with 2 additions and 9 deletions

View File

@ -14,7 +14,6 @@ steps:
platforms: platforms:
- linux/amd64 - linux/amd64
- linux/arm64 - linux/arm64
- linux/arm/v7
build_args: build_args:
- PHP_VERSION=8.1-fpm-alpine3.16 - PHP_VERSION=8.1-fpm-alpine3.16
tags: 8.1-alpine tags: 8.1-alpine
@ -35,7 +34,6 @@ steps:
platforms: platforms:
- linux/amd64 - linux/amd64
- linux/arm64 - linux/arm64
- linux/arm/v7
build_args: build_args:
- PHP_VERSION=8.0-fpm-alpine3.16 - PHP_VERSION=8.0-fpm-alpine3.16
tags: 8.0-alpine tags: 8.0-alpine
@ -56,7 +54,6 @@ steps:
platforms: platforms:
- linux/amd64 - linux/amd64
- linux/arm64 - linux/arm64
- linux/arm/v7
build_args: build_args:
- PHP_VERSION=7.4-fpm-alpine3.16 - PHP_VERSION=7.4-fpm-alpine3.16
tags: 7.4-alpine tags: 7.4-alpine

View File

@ -1,4 +1,4 @@
ARG PHP_VERSION=8.1-fpm-alpine3.15 ARG PHP_VERSION=8.1-fpm-alpine3.16
FROM paramah/base:alpine as base-config FROM paramah/base:alpine as base-config
@ -63,14 +63,10 @@ RUN apk add --no-cache libintl c-client gnu-libiconv \
ENV DIR /var/www ENV DIR /var/www
ENV DOCKERIZE_VERSION v0.6.1 ENV DOCKERIZE_VERSION v0.6.1
# # Install dockerize
# RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
# && tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
# && rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
COPY --from=base-config /etc/supervisor /etc/supervisor COPY --from=base-config /etc/supervisor /etc/supervisor
COPY --from=builder /usr/local/lib/php /usr/local/lib/php COPY --from=builder /usr/local/lib/php /usr/local/lib/php
COPY --from=builder /usr/local/etc /usr/local/etc COPY --from=builder /usr/local/etc /usr/local/etc
COPY --from=paramah/dockerize /usr/local/bin/dockerize /usr/local/bin/dockerize
# Copy base files to docker container # Copy base files to docker container
COPY docker/ / COPY docker/ /