Skip to content

Commit

Permalink
fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
eucyt committed May 9, 2023
1 parent 2d5d294 commit d823de3
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 15 deletions.
115 changes: 114 additions & 1 deletion .idea/mypaper.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 121 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions docker/nginx/default.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
server {
listen 80;
server_name example.com;
root /work/public;
listen [::]:80;
root /var/www/public;

add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";

index index.php;
Expand All @@ -29,4 +28,4 @@ server {
location ~ /\.(?!well-known).* {
deny all;
}
}
}
12 changes: 2 additions & 10 deletions docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
FROM php:8.2-fpm-buster
SHELL ["/bin/bash", "-oeux", "pipefail", "-c"]

ENV COMPOSER_ALLOW_SUPERUSER=1 \
COMPOSER_HOME=/composer

COPY --from=composer:2.0 /usr/bin/composer /usr/bin/composer
COPY --from=composer /usr/bin/composer /usr/bin/composer

RUN apt-get update && \
apt-get -y install git unzip libzip-dev libicu-dev libonig-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-install intl pdo_mysql zip bcmath

RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
RUN npm install npm@latest -g

COPY ./php.ini /usr/local/etc/php/php.ini

WORKDIR /work
WORKDIR /var/www

0 comments on commit d823de3

Please sign in to comment.