30 lines
871 B
Docker
30 lines
871 B
Docker
FROM alpine:latest as builder
|
|
|
|
WORKDIR /work
|
|
RUN \
|
|
apk update && \
|
|
apk add curl && \
|
|
curl --retry 5 -L -o master.zip https://github.com/getkirby/plainkit/archive/main.zip && \
|
|
unzip -qq master.zip && \
|
|
cd plainkit-main && \
|
|
rm -rf README.md .editorconfig .gitignore .htaccess composer.json
|
|
|
|
COPY UCQ1Lrae /work/plainkit-main/site/accounts/UCQ1Lrae
|
|
|
|
# Just for checking what exactly is in there
|
|
#
|
|
# RUN find /work -print
|
|
|
|
############################
|
|
|
|
FROM php:8-fpm-alpine3.13
|
|
|
|
EXPOSE 9000
|
|
WORKDIR /site
|
|
|
|
RUN \
|
|
apk update && \
|
|
apk add --quiet --no-progress freetype-dev libjpeg-turbo-dev libpng-dev && \
|
|
docker-php-ext-configure gd --with-freetype --with-jpeg && \
|
|
docker-php-ext-install -j$(nproc) gd
|
|
COPY --from=builder /work/plainkit-main /site
|