File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ RUN apt-get -y install \
20
20
php5-sqlite \
21
21
;
22
22
23
- ADD . /build
23
+ ADD scripts/ /build
24
24
25
25
WORKDIR /build
26
26
27
27
ENTRYPOINT ["/usr/bin/php" ]
28
+ CMD ["update-vim-syntax.php" ]
Original file line number Diff line number Diff line change @@ -23,5 +23,6 @@ The project comes with a Dockerfile which can be used to rebuild the syntax file
23
23
24
24
``` bash
25
25
docker build -t stanangeloff/php.vim .
26
- docker run -i -t stanangeloff/php.vim scripts/update-vim-syntax.php | sed ' s/\x0D$//' > syntax/php.vim
26
+ docker run --rm -i -v " $PWD " :/var/php -t stanangeloff/php.vim > /tmp/php.vim && cat /tmp/php.vim | sed ' s/\x0D$//' > syntax/php.vim
27
+ docker rmi stanangeloff/php.vim
27
28
```
Original file line number Diff line number Diff line change 156
156
157
157
# Read the existing syntax file with block markers in it.
158
158
#
159
- $ template = file_get_contents (__DIR__ . ' /.. /syntax/php.vim ' );
159
+ $ template = file_get_contents (' /var/php /syntax/php.vim ' );
160
160
161
161
# Clean up any previously defined blocks.
162
162
$ template = preg_replace (
You can’t perform that action at this time.
0 commit comments