# syntax = edrevo/dockerfile-plus
FROM dimti/workspace:8.4

ARG PHP_VERSION=8.4
ENV PHP_VERSION ${PHP_VERSION}

USER root

INCLUDE+ ./workspace.base.Dockerfile

# once please
RUN apt update -qq

RUN apt-get install -qq php${PHP_VERSION}-ldap

RUN apt-get install -qq sudo

RUN 'laradock ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/laradock

# Clean up
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*