Skip to content
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

upgrades php to 7.4 and version to 1.15.4 #91

Open
wants to merge 2 commits 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
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# Deployment doesn't work on Alpine
FROM php:7.3-cli AS deployer
ENV OSTICKET_VERSION=1.14.3
FROM php:8.0-cli AS deployer
ENV OSTICKET_VERSION=1.16.3
RUN set -x \
&& apt-get update \
&& apt-get install -y git-core \
&& git clone -b v${OSTICKET_VERSION} --depth 1 https://github.com/osTicket/osTicket.git \
&& cd osTicket \
&& php manage.php deploy -sv /data/upload \
# www-data is uid:gid 82:82 in php:7.0-fpm-alpine
&& mkdir /data/upload/images/attachments \
&& chown -R 82:82 /data/upload \
# Hide setup
&& mv /data/upload/setup /data/upload/setup_hidden \
&& chown -R root:root /data/upload/setup_hidden \
&& chmod -R go= /data/upload/setup_hidden

FROM php:7.3-fpm-alpine
MAINTAINER Martin Campbell <[email protected]>
FROM php:8.0-fpm-alpine
MAINTAINER Martin Campbell <[email protected]>. Updated to support php 8 and osticket 16.3 by Bob Weston
# environment for osticket
ENV HOME=/data
# setup workdir
WORKDIR /data
COPY --from=deployer /data/upload upload
RUN apk add --no-cache libzip-dev zip && docker-php-ext-configure zip && docker-php-ext-install zip && docker-php-ext-install pdo pdo_mysql

RUN set -x && \
# requirements and PHP extensions
apk add --no-cache --update \
wget \
msmtp \
Expand All @@ -48,7 +48,7 @@ RUN set -x && \
g++ \
make \
pcre-dev && \
docker-php-ext-install gd curl ldap mysqli sockets gettext mbstring xml intl opcache && \
docker-php-ext-install gd curl ldap mysqli sockets gettext xml intl opcache && \
docker-php-ext-configure imap --with-imap-ssl && \
docker-php-ext-install imap && \
pecl install apcu && docker-php-ext-enable apcu && \
Expand All @@ -71,6 +71,6 @@ RUN set -x && \
mkdir -p /var/tmp/nginx && \
chown nginx:www-data /var/tmp/nginx && chmod g+rx /var/tmp/nginx
COPY files/ /
VOLUME ["/data/upload/include/plugins","/data/upload/include/i18n","/var/log/nginx"]
VOLUME ["/data/upload/include/plugins","/data/upload/include/i18n","/var/log/nginx","/data/upload/images/attachments"]
EXPOSE 80
CMD ["/data/bin/start.sh"]