-
-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker image for layer generation and dev purpose
- Loading branch information
1 parent
85f4a73
commit 6e22cf4
Showing
8 changed files
with
32 additions
and
34 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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
# https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html | ||
# AWS has kindly provided us with it as a base docker image. | ||
# https://github.com/aws/amazon-linux-docker-images/tree/2017.03 | ||
FROM amazonlinux:2017.03 | ||
FROM amazonlinux:2 | ||
LABEL authors="Bubba Hines <[email protected]>" | ||
LABEL vendor1="Signature Tech Studio, Inc." | ||
LABEL vendor2="bref" | ||
|
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,9 +1,6 @@ | ||
ARG LAYER_IMAGE=bref/php-73:latest | ||
ARG LAYER_IMAGE | ||
FROM $LAYER_IMAGE | ||
|
||
WORKDIR /opt/bin | ||
COPY ./php-fpm.conf /opt/bref/etc/php-fpm.conf | ||
EXPOSE 9000 | ||
|
||
COPY ./local/php-fpm.conf /opt/bref/etc/php-fpm.conf | ||
|
||
CMD [ "php-fpm", "-F", "-y", "/opt/bref/etc/php-fpm.conf" ] | ||
CMD /opt/bin/php-fpm -F -y /opt/bref/etc/php-fpm.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,4 @@ | ||
FROM nginx:latest | ||
COPY default.conf /etc/nginx/conf.d/default.conf | ||
|
||
CMD sed -i "s|##DOCUMENT_ROOT##|$DOCUMENT_ROOT|g" /etc/nginx/conf.d/default.conf;sed -i "s|##HANDLER##|$HANDLER|g" /etc/nginx/conf.d/default.conf&& cat /etc/nginx/conf.d/default.conf&& nginx -g "daemon off;" |
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,14 @@ | ||
server { | ||
server_name php-docker.local; | ||
root /var/task/##DOCUMENT_ROOT##; | ||
|
||
# Allow /src/index.php and src/test.php. This two routes should be in the .stack.yaml | ||
location = / { | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_pass php:9000; | ||
include fastcgi_params; | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME /var/task/##HANDLER##; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
} | ||
} |
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