feat : restructuration des dossiers pour implementer plus facilement la suite des WS
This commit is contained in:
@@ -14,12 +14,26 @@ RUN apt-get update && apt-get install -y \
|
||||
&& docker-php-ext-install soap \
|
||||
&& docker-php-ext-install dom
|
||||
|
||||
# Install Composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
# installation de composer
|
||||
RUN rm -rf /var/cache/apk/* && rm -rf /tmp/* && \
|
||||
curl --insecure https://getcomposer.org/composer.phar -o /usr/bin/composer && chmod +x /usr/bin/composer
|
||||
|
||||
# install Symfony Flex in the CI environment
|
||||
RUN composer global config --no-plugins allow-plugins.symfony/flex true
|
||||
RUN composer global require --no-progress --no-scripts --no-plugins symfony/flex
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
###> User ###
|
||||
ARG CURRENT_UID
|
||||
ARG CURRENT_GID
|
||||
# mapping du user host avec www-data
|
||||
RUN usermod -o -u ${CURRENT_UID} www-data && groupmod -o -g ${CURRENT_GID} www-data
|
||||
RUN chown www-data:www-data -R /var/www/*
|
||||
RUN chown www-data:www-data -R /var/www/.*
|
||||
###< User ###
|
||||
|
||||
RUN rm -rf \
|
||||
/var/lib/apt/lists/* \
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
||||
|
||||
WORKDIR /app
|
||||
Reference in New Issue
Block a user