add secrets; add action to build and deploy
This commit is contained in:
+6
-14
@@ -17,10 +17,6 @@ RUN apt-get update && apt-get -y install curl
|
||||
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
|
||||
RUN mkdir -p /var/www/.composer
|
||||
RUN chown www-data /var/www/.composer
|
||||
|
||||
|
||||
RUN apt-get install -y \
|
||||
libzip-dev \
|
||||
zip \
|
||||
@@ -52,17 +48,13 @@ COPY services/config/entrypoint.sh /etc/entrypoint.sh
|
||||
|
||||
RUN chmod +x /etc/entrypoint.sh
|
||||
COPY --chown=www-data:www-data ./project /var/www/html
|
||||
#COPY --chown=www-data:www-data ./index.php /var/www/html
|
||||
|
||||
|
||||
#WORKDIR /var/www/html/src/composer
|
||||
#RUN composer install --ignore-platform-reqs --no-scripts
|
||||
|
||||
#COPY --from=minimalise --chown=www-data /var/www/html/src/scripts_generated /var/www/html/src/scripts_generated
|
||||
WORKDIR /var/www/html
|
||||
#RUN composer install
|
||||
#RUN npm install
|
||||
#RUN npm run build
|
||||
#RUN apt-get purge --auto-remove -y npm
|
||||
|
||||
RUN mv .env.prod .env
|
||||
RUN composer install --ignore-platform-reqs --no-scripts
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
RUN apt-get purge --auto-remove -y npm
|
||||
|
||||
ENTRYPOINT ["/etc/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user