arrange volumes

This commit is contained in:
Arthur de Moulins
2020-02-21 17:29:45 +01:00
parent 08384d2fff
commit d41268ea66
9 changed files with 40 additions and 92 deletions

View File

@@ -77,23 +77,24 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
nodejs \
yarn \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists
&& rm -rf /var/lib/apt/lists \
&& mkdir -p /var/alchemy/Phraseanet \
&& chown -R app:app /var/alchemy
WORKDIR /var/alchemy/Phraseanet
USER app
# Warm up composer cache for faster builds
COPY docker/caching/composer.* ./
RUN composer install --prefer-dist --no-dev --no-progress --no-suggest --classmap-authoritative --no-interaction --no-scripts \
&& rm -rf vendor composer.*
# End warm up
COPY . .
COPY --chown=app . .
RUN rm -rf docker \
&& make install_composer \
&& make clean_assets \
&& make install_asset_dependencies \
&& make install_assets
&& make install
ADD docker/phraseanet/ /