Update docker file

This commit is contained in:
2023-01-24 11:29:24 -05:00
parent 7af117c14e
commit 16454e7b80
2 changed files with 31 additions and 59 deletions
+6 -31
View File
@@ -22,40 +22,15 @@ class Dash extends BaseUsersController
}
public function faq(){
$faq_data = array
(
[
'title' => 'What is myFit App ?',
'text' => 'myFit is your personal health care concierge. this app helps you to manage the intricacies of your daily and long term health activities. With myFit, your health record is yours at all point, you decide your provider access as needed from time to time.'
],
[
'title' => 'How Can I manage my health plan with myFit ?',
'text' => 'myFit learns and help You to keep track of all aspects of your health - physical, mental and emotional. It bestow your unique lifestyle, needs and comprehensive well-being'
],
[
'title' => 'What can I track with myFit ?',
'text' => ' myFit automatically keeps track of physical activities, medical status & visits , schedules ,view and cancel appointments. Myfit keeps your health in one place and connects you to support a healthier lifestyle'
],
[
'title' => 'How can I track with myFit ?',
'text' => 'Open myFit app , add information about your health, goals and save.Under each category of your choosing, select Activity, set a goal , see your progress.'
],
[
'title' => 'How secure is myFit App?',
'text' => 'myFit, technology works synchronously with information you choose to share and will be encrypted and stored on a dedicated server so that MyFit can provide you with personalized, healthy decisions. MyFit is built to keep your data secure and protect your privacy. Your data is encrypted and you are always in control of your information.'
],
[
'title' => ' What kind of device do I need?',
'text' => 'All you need is iPhone or Android device to enjoy all personalized metrics for personal use. Instant free download from apple and play store'
]
);
$db = \Config\Database::connect('mermsemr_site');
// foreach($faq_data as $sr){
// $db->table('myfit_faq')->insert($sr);
// }
$query = $db->query(
'SELECT * FROM myfit_contact ORDER BY id DESC LIMIT 10'
'SELECT * FROM myfit_faq ORDER BY id ASC LIMIT 15'
);
$data['contact_data'] = $query->getResultArray();
$data['faq_data'] = $faq_data;
$data['faq_data'] = $query->getResultArray();
// $data['faq_data'] = $faq_data;
$data['page_title'] ='Frequent Questions';
return view('bko/faq',$data);
}
+25 -28
View File
@@ -1,32 +1,29 @@
FROM php:7.4-apache
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN apt-get update
RUN apt-get install -y \
git \
zip \
curl \
sudo \
unzip \
libicu-dev \
libbz2-dev \
libpng-dev \
libjpeg-dev \
libmcrypt-dev \
libreadline-dev \
libfreetype6-dev \
g++
# Use an official PHP runtime as a base image
FROM php:8.1-apache
RUN docker-php-ext-install \
bz2 \
intl \
bcmath \
opcache \
calendar \
pdo_mysql \
mysqli
#\
# pdo_pgsql \
# pgsql
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
#RUN apt-get update
RUN apt-get update && \
apt-get install --yes --force-yes \
cron g++ gettext libicu-dev openssl \
libc-client-dev libkrb5-dev \
libxml2-dev libfreetype6-dev \
libgd-dev libmcrypt-dev bzip2 \
libbz2-dev libtidy-dev libcurl4-openssl-dev \
libz-dev libmemcached-dev libxslt-dev git-core libpq-dev \
libzip4 libzip-dev libwebp-dev
# PHP Configuration
RUN docker-php-ext-install bcmath bz2 calendar dba exif gettext iconv intl soap tidy xsl zip&&\
docker-php-ext-install mysqli pgsql pdo pdo_mysql pdo_pgsql &&\
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp &&\
docker-php-ext-install gd &&\
docker-php-ext-configure imap --with-kerberos --with-imap-ssl &&\
docker-php-ext-install imap &&\
docker-php-ext-configure hash --with-mhash &&\
pecl install redis && docker-php-ext-enable redis
# 2. set up document root for apache
COPY docker/apache/000-default.conf /etc/apache2/sites-available/000-default.conf