Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23-11-2023 20:08] stable - Request merge stable to main branch #91

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 2 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
FROM ghcr.io/kangketikonlen/base-engine:1.2
FROM ghcr.io/kangketikonlen/alpine-engine:latest

WORKDIR /var/www/app

# copy application code
COPY . ./

# set composer related environment variables
ENV PATH="/composer/vendor/bin:$PATH" \
COMPOSER_ALLOW_SUPERUSER=1 \
COMPOSER_VENDOR_DIR=/var/www/app/vendor \
COMPOSER_HOME=/composer

# update the repository
RUN apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
&& apt install iputils-ping -y \
&& apt install mysql-client -y

# install composer
RUN curl -sS https://getcomposer.org/installer | \
php -- --install-dir=/usr/local/bin --filename=composer \
&& composer --ansi --version --no-interaction --no-dev

# add custom php-fpm pool settings, these get written at entrypoint startup
ENV FPM_PM_MAX_CHILDREN=73 \
FPM_PM_START_SERVERS=16 \
Expand Down Expand Up @@ -63,7 +46,7 @@ COPY .docker/conf/nginx.conf /etc/nginx/nginx.conf
COPY .docker/conf/default.conf /etc/nginx/sites-available/default

# install composer dependencies
RUN composer install --no-scripts --no-autoloader --ansi --no-interaction \
RUN composer install --no-dev --no-scripts --no-autoloader --ansi --no-interaction \
&& composer dump-autoload -o

# install nodejs dependencies
Expand Down