Skip to content

Commit

Permalink
Merge pull request #27 from 0xlildoudou/dockerized
Browse files Browse the repository at this point in the history
Base Docker
  • Loading branch information
dbarzin authored Jul 27, 2023
2 parents 1308be1 + 321d8e0 commit b7f1941
Show file tree
Hide file tree
Showing 6 changed files with 436 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile_web
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM --platform=amd64 nginx:bookworm

RUN apt update && apt dist-upgrade -y
RUN apt install -y git composer php php-cli php-opcache php-mysql php-zip php-gd php-mbstring php-curl php-xml

RUN useradd -ms /bin/bash deming
RUN mkdir -p /var/www/deming
COPY deming.conf /etc/nginx/conf.d/default.conf

WORKDIR /var/www/deming

RUN git clone https://www.github.com/dbarzin/deming .
RUN mkdir -p storage/framework/views && mkdir -p storage/framework/cache && mkdir -p storage/framework/sessions && mkdir -p bootstrap/cache
RUN chmod -R 775 /var/www/deming/storage && chown -R www-data:www-data /var/www/deming
RUN composer install
RUN php artisan vendor:publish --all

RUN cp .env.example .env
RUN sed -i 's/DB_HOST=127\.0\.0\.1/DB_HOST=mysql/' .env

COPY entrypoint.sh /opt/entrypoint.sh
RUN chmod u+x /opt/entrypoint.sh

EXPOSE 80

ENTRYPOINT "/opt/entrypoint.sh"
Loading

0 comments on commit b7f1941

Please sign in to comment.