Skip to content

Commit

Permalink
Merge pull request #29 from 0xlildoudou/dockerized
Browse files Browse the repository at this point in the history
Dockerfile stability and fix
  • Loading branch information
dbarzin authored Jul 28, 2023
2 parents d1c842e + 06e991d commit 38efa38
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

16 changes: 14 additions & 2 deletions Dockerfile_web
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
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 apt-get install -y --no-install-recommends \
git=1:2.39.2-* \
composer=2.5.5-* \
php=2:8.2* \
php-cli=2:8.2* \
php-opcache \
php-mysql=2:8.2* \
php-zip=2:8.2* \
php-gd=2:8.2* \
php-mbstring=2:8.2* \
php-curl=2:8.2* \
php-xml=2:8.2* \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

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 cp deming.conf /etc/nginx/conf.d/default.conf
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
Expand Down

0 comments on commit 38efa38

Please sign in to comment.