Update dockerfile

pull/8/head
SuperDev 3 years ago committed by GitHub
parent 7651d58265
commit 5e046d1d24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"]

Loading…
Cancel
Save