upd: Dockerfile
Update to php 8.4 add symfony asset compile Set permissions and ownership of /data directory
This commit is contained in:
parent
95f17a2f3b
commit
d409c83f13
12
Dockerfile
12
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM php:8.3-apache
|
||||
FROM php:8.4-apache
|
||||
|
||||
RUN apt update && \
|
||||
apt upgrade -y && \
|
||||
@ -19,7 +19,6 @@ RUN docker-php-ext-configure gd --with-jpeg
|
||||
RUN docker-php-ext-configure zip
|
||||
|
||||
RUN docker-php-ext-install \
|
||||
#pdo_sqlite \
|
||||
zip \
|
||||
mbstring \
|
||||
exif \
|
||||
@ -46,12 +45,13 @@ RUN rm -rf /var/www/html/translations
|
||||
|
||||
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-scripts --no-dev --optimize-autoloader
|
||||
RUN mkdir /data
|
||||
RUN chown -R 33:33 /data
|
||||
RUN chmod -R 755 /data
|
||||
COPY data/data.db /data/data.db
|
||||
|
||||
RUN mkdir /var/www/html/var/cache
|
||||
RUN mkdir /var/www/html/var/log
|
||||
RUN symfony console asset-map:compile
|
||||
|
||||
RUN chown -R 33:33 /var/www/html
|
||||
RUN chmod -R 755 /var/www/html
|
||||
RUN chown -R 33:33 /var/www/html /data
|
||||
RUN chmod -R 755 /var/www/html /data
|
||||
|
||||
EXPOSE 80
|
||||
|
Loading…
x
Reference in New Issue
Block a user