ldap enabled, only amd64 for docker

This commit is contained in:
Milos Stojanovic
2022-10-12 12:03:48 +02:00
parent 4a32856c38
commit 30339b8998
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
# amd64 only:
# docker buildx build --push --platform linux/amd64 --tag xxx/xxx:latest
# multiplatform:
# docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64,linux/386 --tag xxx/xxx:latest
name: ci-dockerhub
on:
@@ -29,6 +33,6 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64,linux/386
platforms: linux/amd64
push: true
tags: filegator/filegator:latest, filegator/filegator:${{ github.ref_name }}

View File

@@ -32,10 +32,11 @@ RUN rm -rf node_modules frontend tests docs .git*
FROM php:7-apache-buster
RUN apt-get update > /dev/null
RUN apt-get install -y git libzip-dev
RUN apt-get install -y git libzip-dev libldap2-dev
RUN docker-php-ext-install zip
RUN docker-php-ext-enable zip
RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/
RUN docker-php-ext-install zip ldap
RUN docker-php-ext-enable zip ldap
COPY --from=builder /var/www/filegator /var/www/filegator
RUN chown -R www-data:www-data /var/www/filegator/