-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
112 additions
and
40 deletions.
There are no files selected for viewing
File renamed without changes
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build-sandbox: | ||
docker build -t planette/nette-sandbox sandbox | ||
|
||
build-web-project: | ||
docker build -t planette/nette-web-project web-project |
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,29 @@ | ||
FROM debian:stretch | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y wget curl apt-transport-https ca-certificates unzip && \ | ||
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \ | ||
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \ | ||
apt-get update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
php7.3-cli \ | ||
php7.3-mbstring \ | ||
php7.3-intl \ | ||
php7.3-json \ | ||
php7.3-gd \ | ||
php7.3-xml \ | ||
php7.3-sqlite3 \ | ||
php7.3-zip \ | ||
php7.3-tokenizer && \ | ||
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ | ||
cd /srv && \ | ||
composer create-project nette/sandbox /srv && \ | ||
apt-get remove -y curl wget git && \ | ||
apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/* | ||
|
||
WORKDIR /srv | ||
|
||
CMD php -S 0.0.0.0:80 -t /srv/www |
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,21 @@ | ||
# Nette Sandbox in Docker | ||
|
||
## Build | ||
|
||
You can build this image locally, using: | ||
|
||
``` | ||
docker build -t planette/nette-sandbox . | ||
``` | ||
|
||
## Usage | ||
|
||
``` | ||
docker run -it --rm -p 8000:80 planette/nette-sandbox | ||
``` | ||
|
||
Now you can open `http://localhost:8000` in your browser. | ||
|
||
## Demo | ||
|
||
 |
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,29 @@ | ||
FROM debian:stretch | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y wget curl apt-transport-https ca-certificates unzip && \ | ||
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \ | ||
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \ | ||
apt-get update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
php7.3-cli \ | ||
php7.3-mbstring \ | ||
php7.3-intl \ | ||
php7.3-json \ | ||
php7.3-gd \ | ||
php7.3-xml \ | ||
php7.3-sqlite3 \ | ||
php7.3-zip \ | ||
php7.3-tokenizer && \ | ||
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ | ||
cd /srv && \ | ||
composer create-project nette/web-project /srv && \ | ||
apt-get remove -y curl wget git && \ | ||
apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/* | ||
|
||
WORKDIR /srv | ||
|
||
CMD php -S 0.0.0.0:80 -t /srv/www |
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,21 @@ | ||
# Nette Web Project in Docker | ||
|
||
## Build | ||
|
||
You can build this image locally, using: | ||
|
||
``` | ||
docker build -t planette/nette-web-project . | ||
``` | ||
|
||
## Usage | ||
|
||
``` | ||
docker run -it --rm -p 8000:80 planette/nette-web-project | ||
``` | ||
|
||
Now you can open `http://localhost:8000` in your browser. | ||
|
||
## Demo | ||
|
||
 |