-
Notifications
You must be signed in to change notification settings - Fork 0
Added pre-installed images #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
36a15c8
81a5eff
0f97310
fafad70
0a0f26f
33262ae
3a4766c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| FROM nginx:mainline-alpine3.20-slim | ||
| FROM nginx:1.27.2 | ||
|
|
||
| # Installing needed software | ||
| RUN apt-get update && \ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,18 @@ | |
|
|
||
| set -e | ||
|
|
||
| dockerd & | ||
| /usr/sbin/sshd -D | ||
| # Starting docker daemon + starting ssh daemon | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added comments |
||
| dockerd > /dev/null 2>&1 & | ||
| /usr/sbin/sshd -D > /dev/null 2>&1 & | ||
|
|
||
| # Waiting for docker engine to start (until 'docker info' returns non-zero exit-code sleep 1) | ||
| until docker info >/dev/null 2>&1; do sleep 1; done | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Waiting for docker engine to start before loading the nginx image |
||
|
|
||
| # Adding php image | ||
| docker image load -i /docker-images/php-fpm.tar | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. loading php-fpm image into docker engine |
||
|
|
||
| # Cleaning images | ||
| rm -rf /docker-images | ||
|
|
||
| # Executing CMD statement | ||
| exec "$@" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying the image inside the container