From a26aea218d2c82b33b2020f765f2488f5699e005 Mon Sep 17 00:00:00 2001 From: Joost Faassen Date: Mon, 18 Apr 2022 07:37:17 +0100 Subject: [PATCH] chore: dockerflie --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..331a0bd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM ghcr.io/linkorb/php-docker-base:php8 + +EXPOSE 80 + +COPY --chown=www-data:www-data . /app + +WORKDIR /app + +USER www-data + +RUN COMPOSER_MEMORY_LIMIT=-1 /usr/bin/composer install --no-scripts --no-dev + +RUN npm install && node_modules/.bin/encore production && rm -rf node_modules + +USER root + +ENTRYPOINT ["apache2-foreground"]