mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-02 14:24:27 -04:00
- Convert Travis CI configuration to GitHub Actions workflows - Add multi-arch Docker builds (amd64/arm64) - Implement initial schema migration for fresh database installs - Add multi-attribute search with AND logic and sort by attribute columns - Address various PR review feedback and formatting fixes
26 lines
1020 B
Docker
26 lines
1020 B
Docker
FROM php:8.2-apache AS ospos
|
|
LABEL maintainer="jekkos"
|
|
|
|
RUN apt update && apt-get install -y libicu-dev libgd-dev
|
|
RUN a2enmod rewrite
|
|
RUN docker-php-ext-install mysqli bcmath intl gd
|
|
RUN echo "date.timezone = \"\${PHP_TIMEZONE}\"" > /usr/local/etc/php/conf.d/timezone.ini
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
RUN ln -s /app/*[^public] /var/www && rm -rf /var/www/html && ln -nsf /app/public /var/www/html
|
|
RUN chmod -R 770 /app/writable/uploads /app/writable/logs /app/writable/cache && chown -R www-data:www-data /app
|
|
|
|
FROM ospos AS ospos_dev
|
|
|
|
ARG USERID
|
|
ARG GROUPID
|
|
|
|
RUN echo "Adding user uid $USERID with gid $GROUPID"
|
|
RUN ( addgroup --gid $GROUPID ospos || true ) && ( adduser --uid $USERID --gid $GROUPID ospos )
|
|
|
|
RUN yes | pecl install xdebug \
|
|
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
|
|
&& echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
|
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
|