Bump docker base image to php8

This commit is contained in:
jekkos
2023-05-02 00:12:10 +02:00
committed by jekkos
parent f5094d62a2
commit 24539101d2
3 changed files with 4 additions and 5 deletions

View File

@@ -22,9 +22,8 @@ script:
- echo "$version-$branch-$rev"
- npm version "$version-$branch-$rev" --force || true
- docker run --rm -it -v $(pwd):/app -w /app opensourcepos/node-grunt-bower
sh -c "npm install && bower install && grunt package"
sh -c "npm install && npm run build"
- docker build . --target ospos -t ospos
- docker-compose -f docker-compose.test.yml up --abort-on-container-exit
- docker build database/ -t jekkos/opensourcepos:sqlscript
env:
global:

View File

@@ -1,4 +1,4 @@
FROM php:7.4-apache AS ospos
FROM php:8-apache AS ospos
LABEL maintainer="jekkos"
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
@@ -13,7 +13,7 @@ RUN echo "date.timezone = \"\${PHP_TIMEZONE}\"" > /usr/local/etc/php/conf.d/time
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 750 /app/writable/uploads /app/writable/logs && chown -R www-data:www-data /app/writable /app/application
RUN chmod -R 750 /app/writable/uploads /app/writable/logs && chown -R www-data:www-data /app/writable
FROM ospos AS ospos_test

View File

@@ -17,7 +17,7 @@ services:
image: jekkos/opensourcepos:sqlscript
command: /bin/sh -c 'exit 0'
ospos:
image: jekkos/opensourcepos:3.4.0
image: jekkos/opensourcepos:3.3.8
restart: always
depends_on:
- mysql