update
This commit is contained in:
parent
1e9f3bafb1
commit
074807aabd
1 changed files with 22 additions and 5 deletions
|
@ -20,6 +20,7 @@ USER root
|
|||
RUN apk --no-cache add \
|
||||
unzip \
|
||||
nodejs \
|
||||
npm \
|
||||
git \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
|
@ -46,24 +47,40 @@ RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/01-symfony.sh \
|
|||
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \
|
||||
&& chmod +x /docker-entrypoint-init.d/01-symfony.sh
|
||||
|
||||
USER nobody
|
||||
|
||||
RUN wget https://github.com/open-event-manager/open-event-manager/archive/refs/tags/${VERSION}.tar.gz -O artifact.tar.gz \
|
||||
&& tar --strip-components=1 -xvzf artifact.tar.gz
|
||||
&& tar --strip-components=1 -xvzf artifact.tar.gz \
|
||||
&& chown -R nobody public \
|
||||
&& chown -R nobody var \
|
||||
&& chmod -R 700 public \
|
||||
&& chmod -R 700 var
|
||||
|
||||
RUN mv /etc/php7/conf.d/custom.ini /etc/php7/custom.ini
|
||||
|
||||
RUN php -d memory_limit=-1 \
|
||||
composer.phar install \
|
||||
--optimize-autoloader \
|
||||
--no-interaction \
|
||||
--no-progress
|
||||
--no-progress \
|
||||
--no-dev
|
||||
|
||||
RUN mv /etc/php7/custom.ini /etc/php7/conf.d/custom.ini
|
||||
|
||||
RUN npm install \
|
||||
&& npm run build
|
||||
|
||||
RUN apk del \
|
||||
unzip \
|
||||
nodejs \
|
||||
npm \
|
||||
git \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN rm -r node_modules \
|
||||
&& rm artifact.zip \
|
||||
&& rm artifact.tar.gz \
|
||||
&& rm -r var/cache
|
||||
|
||||
USER nobody
|
||||
|
||||
ENV nginx_root_directory=/var/www/html/public \
|
||||
upload_max_filesize=10M \
|
||||
date_timezone=Europe/Berlin
|
||||
|
|
Loading…
Reference in a new issue