diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..e3bd25da --- /dev/null +++ b/.dockerignore @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index f2525fbc..448980dc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: "1.0" services: web: ports: diff --git a/docker/Dockerfile b/docker/Dockerfile index b5f3a99d..3b47743b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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 diff --git a/docker/config.local.php b/docker/config.local.php index 8a0cc652..b32cdb4d 100644 --- a/docker/config.local.php +++ b/docker/config.local.php @@ -1,4 +1,4 @@