* src for workspace & php build

* user images from src
This commit is contained in:
2021-04-15 15:57:05 +03:00
parent e051d0100c
commit f68bf45fae
21 changed files with 321 additions and 112 deletions

View File

@ -1,9 +1,26 @@
# syntax = edrevo/dockerfile-plus
ARG PHP_VERSION=7.4
FROM dimti/workspace:7.4
FROM laradock/workspace:latest-${PHP_VERSION}
###########################################################################
# Laradock non-root user:
###########################################################################
INCLUDE+ ./workspace.base.Dockerfile
ARG PUID=1000
ENV PUID ${PUID}
ARG PGID=1000
ENV PGID ${PGID}
RUN usermod -u ${PUID} laradock && groupmod -g ${PGID} laradock
RUN chown -R ${PUID}:${PGID} /home/laradock
###########################################################################
# Set Timezone
###########################################################################
ARG TZ=Europe/Moscow
ENV TZ ${TZ}
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
###########################################################################
# Additional PHP-extensions:
@ -13,6 +30,14 @@ RUN pecl install igbinary \
&& pecl install -a redis
###########################################################################
# S3 config
###########################################################################
USER laradock
COPY ./minio/auth.json /home/laradock/.mc/config.json
###########################################################################
# Crontab
###########################################################################