|
|
|
@ -4,6 +4,14 @@ RUN docker-php-ext-install pdo_mysql
|
|
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
|
|
# 6. User
|
|
|
|
|
|
|
|
|
|
ARG uid
|
|
|
|
|
RUN useradd -G www-data,root -u 911 -d /home/devuser devuser
|
|
|
|
|
RUN mkdir -p /home/devuser/.composer && \
|
|
|
|
|
chown -R devuser:devuser /home/devuser && \
|
|
|
|
|
chown -R devuser /home/devuser/.composer/
|
|
|
|
|
|
|
|
|
|
# 1. development packages
|
|
|
|
|
RUN apt-get install -y \
|
|
|
|
|
git \
|
|
|
|
@ -47,12 +55,4 @@ RUN docker-php-ext-install \
|
|
|
|
|
# 5. composer
|
|
|
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
|
|
|
|
|
|
|
|
# 6. User
|
|
|
|
|
|
|
|
|
|
ARG uid
|
|
|
|
|
RUN useradd -G www-data,root -u $uid -d /home/devuser devuser
|
|
|
|
|
RUN mkdir -p /home/devuser/.composer && \
|
|
|
|
|
chown -R devuser:devuser /home/devuser && \
|
|
|
|
|
chown -R devuser /home/devuser/.composer/
|
|
|
|
|
|
|
|
|
|
CMD ["apache2ctl", "-D", "FOREGROUND"]
|
|
|
|
|