Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
yanggyein
/
kku
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/yanggyein/kku/Dockerfile
# ubuntu 설치 FROM ubuntu:20.04 RUN mkdir /home/laravel VOLUME /home/laravel RUN apt update -y RUN apt upgrade -y ENV DEBIAN_FRONTEND=noninteractive # NODEJS NPM 설치 RUN apt install unzip RUN apt install curl -y RUN apt install build-essential -y RUN curl -sL https://deb.nodesource.com/setup_14.x | bash RUN apt install nodejs -y RUN apt install software-properties-common -y RUN add-apt-repository ppa:ondrej/nginx RUN add-apt-repository ppa:ondrej/php RUN apt update -y RUN apt install php8.0 -y RUN apt install php8.0-cli php8.0-curl php8.0-mysql php8.0-fpm php8.0-gd php8.0-xml php8.0-mbstring php8.0-zip php8.0-soap php8.0-dev -y # RUN apt install php8.0-common php8.0-mysql php8.0-xml php8.0-curl php8.0-gd php8.0-imagick php8.0-cli php8.0-dev php8.0-imap php8.0-mbstring php8.0-opcache php8.0-soap php8.0-zip -y RUN curl -sS https://getcomposer.org/installer | php # RUN curl -sS https://getcomposer.org/installer -o composer-setup.php # RUN HASH=`curl -sS https://composer.github.io/installer.sig` # RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" # RUN sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer RUN mv composer.phar /usr/bin/composer RUN composer global self-update --2 RUN composer global require laravel/installer # 라라벨 설치 # RUN PATH=$PATH:~/.composer/vendor/bin/ # RUN ~/.composer/vendor/bin/laravel new /home/laravel # RUN chown -R www-data /home/laravel/ # WORKDIR /home/laravel # composer 의존성 설치 # RUN composer install # 프론트앤드 스케폴딩 # RUN composer require laravel/ui --dev # Generate basic scaffolding... # RUN php artisan ui bootstrap # RUN php artisan ui vue # RUN php artisan ui react # Generate login / registration scaffolding... # RUN php artisan ui bootstrap --auth # RUN php artisan ui vue --auth # RUN php artisan ui react --auth RUN apt update -y # npm 의존성 설치 # RUN npm install && npm run dev WORKDIR / ######## RUN apt install -y nginx RUN apt install -y git RUN apt install -y vim # Apache 웹서버 삭제 RUN service apache2 stop RUN apt-get remove apache2.* -y RUN apt-get remove apache.* -y RUN apt autoremove -y # 최신상태로 RUN apt update -y # php 설정 ADD phpconfig.ini /etc/php/8.0/fpm/conf.d/ # nginx 설정 RUN rm -r /etc/nginx/sites-available/default ADD default /etc/nginx/sites-available/ # docker container 시작시 ADD docker-entrypoint.sh / RUN chmod +x /docker-entrypoint.sh RUN chmod +x /var/log/nginx/access.log RUN apt update -y ENTRYPOINT ["/docker-entrypoint.sh"] EXPOSE 80 443 # nginx # docker run -it -p 80:80 -p 8000-8050:8000-8050 -v /home/kuinsoo/kkuisland:/home/laravel --restart="always" --name kkuisland laravel # mariadb # docker run --name mariadb -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=mariadb mariadb # 계정 변경 # set PASSWORD for 'root'@'localhost'=PASSWORD('0728Rndlstn$'); # flush privileges; # create table kkuisland; # create table laravel; # create table yanggyein; # grant all privileges on *.* to 'kuinsoo'@'%' identified by '0701rnfma4'; # grant select,insert,update,delete on *.* to 'kkuisland'@'%' identified by 'kkuislandb'; # apt install php8.0 -y # apt install php8.0-cli php8.0-curl php8.0-mysql php8.0-fpm php8.0-gd php8.0-xml php8.0-mbstring php8.0-zip php8.0-soap php8.0-dev -y # apt remove php8.0 -y # apt remove php8.0-cli php8.0-curl php8.0-mysql php8.0-fpm php8.0-gd php8.0-xml php8.0-mbstring php8.0-zip php8.0-soap php8.0-dev -y # apt purge php8.0 -y # apt purge php8.0-cli php8.0-curl php8.0-mysql php8.0-fpm php8.0-gd php8.0-xml php8.0-mbstring php8.0-zip php8.0-soap php8.0-dev -y # service apache2 stop # apt-get remove apache2.* -y # apt-get remove apache.* -y # apt autoremove -y