Fix docker build

This commit is contained in:
slawkens 2024-12-20 22:27:57 +01:00
parent 335a0d1cff
commit 5e14521f08
4 changed files with 69 additions and 2 deletions

65
.dockerignore Normal file
View File

@ -0,0 +1,65 @@
Thumbs.db
.DS_Store
.idea
#
/.htaccess
# composer
composer.phar
vendor
# npm
node_modules
tools/ext
# cypress
cypress.env.json
cypress/e2e/2-advanced-examples
cypress/screenshots
# created by release.sh
releases
tmp
config.local.php
!docker/config.local.php
# all custom templates
templates/*
!templates/tibiacom
!templates/kathrine
# guild images
images/guilds/*
!images/guilds/default.gif
# editor images
images/editor/*
!images/editor/index.html
# gallery images
images/gallery/*
!images/gallery/index.html
!images/gallery/demon.jpg
!images/gallery/demon_thumb.gif
# cache
system/cache/*
!system/cache/index.html
!system/cache/twig/index.html
!system/cache/signatures/index.html
!system/cache/plugins/index.html
!system/cache/persistent/index.html
# logs
system/logs/*
!system/logs/index.html
# data
system/data/*
!system/data/index.html
# php sessions
system/php_sessions/*
!system/php_sessions/index.html

View File

@ -1,4 +1,3 @@
version: "1.0"
services:
web:
ports:

View File

@ -19,6 +19,8 @@ RUN apt-get update && apt-get install -y \
nano \
vim
RUN apt-get install -y nodejs npm
# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
@ -51,3 +53,4 @@ WORKDIR /var/www/html
COPY --chown=www-data:www-data . .
RUN composer install
RUN npm install

View File

@ -1,4 +1,4 @@
<?php
$config['installed'] = true;
$config['installed'] = false;
$config['server_path'] = '/home/www-data/forgottenserver';
$config['install_ignore_ip_check'] = true;