-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from 0xlildoudou/dockerized
Base Docker
- Loading branch information
Showing
6 changed files
with
436 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.