Skip to content

Commit

Permalink
chore: try to fix permisions
Browse files Browse the repository at this point in the history
  • Loading branch information
flemming-pr committed Sep 5, 2023
1 parent d8b548d commit 273a84b
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
FROM serversideup/php:8.2-fpm-nginx

ENV AUTORUN_LARAVEL_MIGRATION=true
ENV AUTORUN_ENABLED=false
ENV TZ=Europe/Berlin
ENV PHP_DATE_TIMEZONE=Europe/Berlin
ENV SSL_MODE=off

RUN mkdir -p /var/www/html/databasestore

WORKDIR /var/www/html

COPY ./ /var/www/html

RUN composer install --optimize-autoloader --no-interaction --no-dev

RUN apt-get update
RUN apt-get -y install curl gnupg
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get -y install nodejs
RUN npm ci
RUN npm run build
RUN rm -rf node_modules

USER $PUID:$PGID

RUN mkdir -p /var/www/html/databasestore

COPY --chown=$PUID:$PGID ./ /var/www/html

RUN composer install --optimize-autoloader --no-interaction --no-dev

RUN npm ci
RUN npm run build

RUN php ./artisan event:cache && \
php ./artisan route:cache && \
php ./artisan view:cache

USER root:root

0 comments on commit 273a84b

Please sign in to comment.