mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-28 11:53:34 -04:00
Bump docker base image to php8
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user