Fix docker build

This commit is contained in:
Adam Lavin 2021-03-30 22:08:15 +01:00
parent eb02ff48c2
commit d1cb2e69cf
No known key found for this signature in database
GPG key ID: 9C4C68AFA9CA6461

View file

@ -40,13 +40,18 @@ COPY --from=composer /usr/bin/composer /usr/bin/composer
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/install-php-extensions COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/install-php-extensions
COPY --from=atomicparsley_builder /tmp/atomicparsley/AtomicParsley /usr/local/bin/AtomicParsley COPY --from=atomicparsley_builder /tmp/atomicparsley/AtomicParsley /usr/local/bin/AtomicParsley
RUN apk update
## Common libraries required for ffmpeg & atomicparsley` to work ## Common libraries required for ffmpeg & atomicparsley` to work
RUN apk add --no-cache libgcc libstdc++ ca-certificates libcrypto1.1 libssl1.1 libgomp expat git RUN apk add libgcc libstdc++ ca-certificates libcrypto1.1 libssl1.1 libgomp expat git
RUN apk add --no-cache nginx sudo imagemagick RUN apk add nginx sudo
# Install php extensions # Install php extensions
RUN install-php-extensions mysqli pgsql pdo_mysql pdo_pgsql gmp gmagick redis RUN install-php-extensions mysqli pgsql pdo_mysql pdo_pgsql gmp gmagick redis
# not sure why but this needs to be after the php extensions otherwise some kind of dependency issue occurs
RUN apk add imagemagick
RUN mkdir /app && chown -R www-data: /app RUN mkdir /app && chown -R www-data: /app
USER www-data USER www-data