Added the ability to enable captcha when logging in.
This commit is contained in:
		@@ -48,32 +48,32 @@ RUN apk --no-cache add pcre2 libbz2 libpng libwebp libjpeg-turbo icu-libs freety
 | 
			
		||||
    && ln -sf /dev/stdout /var/log/unit.log \
 | 
			
		||||
    && addgroup -S unit && adduser -S unit -G unit
 | 
			
		||||
 | 
			
		||||
#FROM BUILD as APP_BUILD_FOR_PRODUCTION
 | 
			
		||||
#WORKDIR /home/app
 | 
			
		||||
#
 | 
			
		||||
#COPY application /home/app
 | 
			
		||||
#
 | 
			
		||||
#RUN apk --no-cache add git nodejs npm \
 | 
			
		||||
#    && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
 | 
			
		||||
#    && composer install --optimize-autoloader --no-dev \
 | 
			
		||||
#    && npm install && npm run build \
 | 
			
		||||
#    && rm -rf /home/app/node_modules /home/app/.env
 | 
			
		||||
#
 | 
			
		||||
#
 | 
			
		||||
#FROM BUILD AS PRODUCTION
 | 
			
		||||
#
 | 
			
		||||
#COPY --from=APP_BUILD_FOR_PRODUCTION /home/app /var/www/html
 | 
			
		||||
#COPY docker/docker-entrypoint_prod.sh /home/unit/docker-entrypoint.sh
 | 
			
		||||
#
 | 
			
		||||
#WORKDIR /var/www/html
 | 
			
		||||
#
 | 
			
		||||
#RUN chmod 755 /home/unit/docker-entrypoint.sh
 | 
			
		||||
#
 | 
			
		||||
#STOPSIGNAL SIGTERM
 | 
			
		||||
#
 | 
			
		||||
#ENTRYPOINT ["/home/unit/docker-entrypoint.sh"]
 | 
			
		||||
#EXPOSE 9000
 | 
			
		||||
#CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock", "--user", "unit", "--group", "unit"]
 | 
			
		||||
FROM BUILD as APP_BUILD_FOR_PRODUCTION
 | 
			
		||||
WORKDIR /home/app
 | 
			
		||||
 | 
			
		||||
COPY application /home/app
 | 
			
		||||
 | 
			
		||||
RUN apk --no-cache add git nodejs npm \
 | 
			
		||||
    && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
 | 
			
		||||
    && composer install --optimize-autoloader --no-dev \
 | 
			
		||||
    && npm install && npm run build \
 | 
			
		||||
    && rm -rf /home/app/node_modules /home/app/.env
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM BUILD AS PRODUCTION
 | 
			
		||||
 | 
			
		||||
COPY --from=APP_BUILD_FOR_PRODUCTION /home/app /var/www/html
 | 
			
		||||
COPY docker/docker-entrypoint_prod.sh /home/unit/docker-entrypoint.sh
 | 
			
		||||
 | 
			
		||||
WORKDIR /var/www/html
 | 
			
		||||
 | 
			
		||||
RUN chmod 755 /home/unit/docker-entrypoint.sh
 | 
			
		||||
 | 
			
		||||
STOPSIGNAL SIGTERM
 | 
			
		||||
 | 
			
		||||
ENTRYPOINT ["/home/unit/docker-entrypoint.sh"]
 | 
			
		||||
EXPOSE 9000
 | 
			
		||||
CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock", "--user", "unit", "--group", "unit"]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM BUILD AS DEVELOP
 | 
			
		||||
@@ -105,7 +105,8 @@ FROM BUILD AS COMPOSER
 | 
			
		||||
WORKDIR /var/www/html
 | 
			
		||||
STOPSIGNAL SIGTERM
 | 
			
		||||
RUN apk --no-cache add git \
 | 
			
		||||
    && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
 | 
			
		||||
    && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
 | 
			
		||||
    && mkdir /.composer && chmod 0777 /.composer
 | 
			
		||||
ENTRYPOINT ["composer"]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user