File tree Expand file tree Collapse file tree 4 files changed +42
-1
lines changed Expand file tree Collapse file tree 4 files changed +42
-1
lines changed Original file line number Diff line number Diff line change
1
+ # !/usr/bin/make -f
2
+
3
+ .PHONY : image
4
+
5
+ # ---------------------------------------------------------------------
6
+
7
+ image :
8
+ docker build -t phalcon -f build/BuildPharDockerfile .
Original file line number Diff line number Diff line change @@ -74,6 +74,18 @@ chmod +xr ./phalcon.phar
74
74
php ./phalcon.phar
75
75
```
76
76
77
+ ## Build Docker Image
78
+
79
+ Use make command to build the docker image, It will build the image named ` phalcon ` :
80
+ ``` bash
81
+ make image
82
+ ```
83
+
84
+ And run container with following command:
85
+ ``` bash
86
+ docker run -it --rm phalcon
87
+ ```
88
+
77
89
## Installation via Git
78
90
79
91
Phalcon Devtools can be installed by using Git.
Original file line number Diff line number Diff line change
1
+ FROM mileschou/phalcon:5.5-alpine AS builder
2
+
3
+ WORKDIR /source
4
+
5
+ RUN apk add --no-cache git
6
+
7
+ COPY --from=composer /usr/bin/composer /usr/bin/composer
8
+ COPY composer.json ./composer.json
9
+ RUN composer install
10
+
11
+ COPY . .
12
+
13
+ RUN set -xe && \
14
+ php -d phar.readonly=off vendor/bin/box build && \
15
+ php phalcon.phar
16
+
17
+ FROM mileschou/phalcon:5.5-alpine
18
+
19
+ COPY --from=builder /source/phalcon.phar /usr/bin/phalcon
20
+
21
+ ENTRYPOINT ["sh", "-c", "/usr/bin/phalcon"]
Original file line number Diff line number Diff line change @@ -39,6 +39,6 @@ class Version extends PhVersion
39
39
*/
40
40
protected static function _getVersion ()
41
41
{
42
- return [3 , 4 , 8 , 0 , 0 ];
42
+ return [3 , 4 , 9 , 0 , 0 ];
43
43
}
44
44
}
You can’t perform that action at this time.
0 commit comments