forked from ReviveNetwork/ASP
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #12 from startersclan/fix/fix-setting-of-permissio…
…ns-in-dockerfile.x.prod-and-use-config-file-for-php-fpm Fix: Fix setting of permissions in Dockerfile.*.prod and use config file for php-fpm
- Loading branch information
Showing
7 changed files
with
50 additions
and
23 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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
FROM alpine:latest AS build | ||
FROM nginx:1.21-alpine AS build | ||
ARG TARGETPLATFORM | ||
ARG BUILDPLATFORM | ||
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" | ||
|
||
# Set permissions for nginx's 'nginx' user | ||
# Set permissions for 'nginx' user | ||
COPY ./src /src | ||
WORKDIR /src | ||
RUN chown -R 101:101 . \ | ||
RUN chown -R nginx:nginx . \ | ||
&& find . -type d -exec chmod 750 {} \; \ | ||
&& find . -type f -exec chmod 640 {} \; | ||
|
||
FROM nginx:1.21-alpine | ||
FROM nginx:1.21-alpine AS final | ||
|
||
# Add default configs | ||
COPY config/nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY --from=build /src /src | ||
COPY config/nginx/nginx.conf /etc/nginx/nginx.conf |
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
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
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,10 @@ | ||
[www] | ||
user = www-data | ||
group = www-data | ||
security.limit_extensions = .php | ||
pm = dynamic | ||
pm.max_children = 5 | ||
pm.start_servers = 2 | ||
pm.min_spare_servers = 1 | ||
pm.max_spare_servers = 3 | ||
pm.status_path = /status.php |
This file was deleted.
Oops, something went wrong.
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
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