wat kleine verbeteringen

This commit is contained in:
arjan 2026-04-21 17:52:40 +02:00
parent 62d0419a76
commit 609cc7cc7e
3 changed files with 25 additions and 5 deletions

15
.dockerignore Normal file
View file

@ -0,0 +1,15 @@
# https://medium.com/@bounouh.fedi/mastering-the-dockerignore-file-boosting-docker-build-efficiency-398719f4a0e1
# Ignore version control (directories), not needed in container
.git
.git/
.gitignore
# If we're cacheing cpan modules, so they are not downloaded every time
# ignore these caches in the container
.cpanrc
cpan-cache/
# Ignore Docker-related files
Dockerfile*
.dockerignore

View file

@ -1,4 +1,4 @@
FROM debian:latest
FROM debian:trixie
ENV DEBIAN_FRONTEND=noninteractive
@ -8,7 +8,7 @@ RUN apt update && apt -y install perl cpanminus libaspell-dev make libdbd-mysql-
apache2 apache2-utils mailutils
RUN cpanm --notest --force \
RUN cpanm --notest --no-cache --force \
Algorithm::Permute \
App::Cmd \
Archive::Any \
@ -142,6 +142,8 @@ RUN cpanm --notest --force \
namespace::autoclean
RUN apt -y remove libjson-xs-perl
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
#RUN cpanm --notest --force \
# DBD::mysql@4.051

View file

@ -13,10 +13,13 @@ services:
volumes:
- ./share/create.sql:/docker-entrypoint-initdb.d/1.sql
ports:
- 3306
- 3306:3306
webgui:
image: webgui
image: webgui:latest
build:
context: ..
dockerfile: Dockerfile
container_name: webgui
depends_on:
- db
@ -38,4 +41,4 @@ services:
#- "443:443"
# TODO: serve staatic files directly from nginx
#- ./www:/var/www/html:ro