Some features for docker users

Disable IP Check on install
automatically fill out server_path
This commit is contained in:
slawkens
2023-09-17 14:39:02 +02:00
parent 72d7ee8bf2
commit 49af260c2e
6 changed files with 16 additions and 16 deletions

View File

@@ -15,28 +15,21 @@ RUN apt-get update && apt-get install -y \
libxml2-dev \
libzip-dev \
zip \
unzip
unzip \
nano \
vim
# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Install PHP extensions
RUN docker-php-ext-install pdo pdo_mysql gd zip opcache
RUN docker-php-ext-configure opcache --enable-opcache
#INSTALL APCU
RUN pecl install apcu-${APCU_VERSION} && docker-php-ext-enable apcu
RUN echo "extension=apcu.so" >> /usr/local/etc/php/php.ini
RUN echo "apc.enable_cli=1" >> /usr/local/etc/php/php.ini
RUN echo "apc.enable=1" >> /usr/local/etc/php/php.ini
#APCU
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY docker/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
# Create system user to run Composer Commands
#RUN useradd -G www-data,root -u $uid -d /home/$user $user
RUN mkdir -p /home/$user/.composer && \
@@ -49,7 +42,8 @@ USER $user
WORKDIR /home/$user
RUN git clone https://github.com/otland/forgottenserver.git
COPY docker/config.lua /home/$user/forgottenserver
COPY --chown=www-data:www-data docker/config.lua /home/$user/forgottenserver
COPY --chown=www-data:www-data docker/config.local.php /var/www/html
#WORKDIR /home/$user/forgottenserver

View File

@@ -1,2 +0,0 @@
[opcache]
opcache.enable=1