Skip to content

Update Dockerfile #24

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ LABEL maintainer = "Christian Gatzlaff <[email protected]>"

ARG PHP_VIRTUAL_BOX_RELEASE=main

RUN apk update && apk add --no-cache bash nginx php81-fpm php81-cli php81-common php81-json php81-soap php81-simplexml php81-session \
RUN apk update && apk add --no-cache bash nginx php82-fpm php82 php82-common php82-json php82-soap php82-simplexml php82-session \
&& apk add --no-cache --virtual build-dependencies wget unzip \
&& wget --no-check-certificate https://github.com/BartekSz95/phpvirtualbox/archive/${PHP_VIRTUAL_BOX_RELEASE}.zip -O phpvirtualbox.zip \
&& wget --no-check-certificate https://github.com/studnitskiy/phpvirtualbox/archive/${PHP_VIRTUAL_BOX_RELEASE}.zip -O phpvirtualbox.zip \
&& unzip phpvirtualbox.zip -d phpvirtualbox \
&& mkdir -p /var/www \
&& mv -v phpvirtualbox/*/* /var/www/ \
Expand All @@ -25,4 +25,4 @@ COPY servers-from-env.php /servers-from-env.php
EXPOSE 80

# write linked instances to config, then monitor all services
CMD php81 /servers-from-env.php && php-fpm81 && nginx
CMD php82 /servers-from-env.php && php-fpm82 && nginx