-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #815 from StefanSchoof/officialimage
Use official php docker images as base
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Copyright (c) 2019 Andreas Goetz <[email protected]> | ||
|
||
FROM jorge07/alpine-php:7.3-dev AS builder | ||
FROM composer:1 AS builder | ||
|
||
WORKDIR /vz | ||
|
||
|
@@ -11,16 +11,18 @@ RUN composer install --no-ansi --no-scripts --no-dev --no-interaction --no-progr | |
COPY . /vz | ||
|
||
|
||
FROM jorge07/alpine-php:7.3 | ||
FROM php:7.3-alpine | ||
|
||
EXPOSE 8080 | ||
EXPOSE 8082 | ||
EXPOSE 5582 | ||
|
||
RUN docker-php-ext-install pcntl pdo_mysql | ||
|
||
COPY --from=builder /vz /vz | ||
COPY --from=builder /vz/etc/config.dist.yaml /vz/etc/config.yaml | ||
|
||
# modify options.js | ||
RUN sed -i "s/url: 'api'/url: '',/" /vz/htdocs/js/options.js | ||
|
||
CMD /vz/vendor/bin/ppm start -c /vz/etc/middleware.json --static-directory /vz/htdocs --cgi-path=/usr/bin/php | ||
CMD /vz/vendor/bin/ppm start -c /vz/etc/middleware.json --static-directory /vz/htdocs --cgi-path=/usr/local/bin/php |
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