wat kleine verbeteringen
This commit is contained in:
parent
62d0419a76
commit
609cc7cc7e
3 changed files with 25 additions and 5 deletions
15
.dockerignore
Normal file
15
.dockerignore
Normal 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
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM debian:latest
|
FROM debian:trixie
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
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
|
apache2 apache2-utils mailutils
|
||||||
|
|
||||||
|
|
||||||
RUN cpanm --notest --force \
|
RUN cpanm --notest --no-cache --force \
|
||||||
Algorithm::Permute \
|
Algorithm::Permute \
|
||||||
App::Cmd \
|
App::Cmd \
|
||||||
Archive::Any \
|
Archive::Any \
|
||||||
|
|
@ -142,6 +142,8 @@ RUN cpanm --notest --force \
|
||||||
namespace::autoclean
|
namespace::autoclean
|
||||||
|
|
||||||
RUN apt -y remove libjson-xs-perl
|
RUN apt -y remove libjson-xs-perl
|
||||||
|
RUN apt-get clean
|
||||||
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
#RUN cpanm --notest --force \
|
#RUN cpanm --notest --force \
|
||||||
# DBD::mysql@4.051
|
# DBD::mysql@4.051
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,13 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./share/create.sql:/docker-entrypoint-initdb.d/1.sql
|
- ./share/create.sql:/docker-entrypoint-initdb.d/1.sql
|
||||||
ports:
|
ports:
|
||||||
- 3306
|
- 3306:3306
|
||||||
|
|
||||||
webgui:
|
webgui:
|
||||||
image: webgui
|
image: webgui:latest
|
||||||
|
build:
|
||||||
|
context: ..
|
||||||
|
dockerfile: Dockerfile
|
||||||
container_name: webgui
|
container_name: webgui
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
@ -38,4 +41,4 @@ services:
|
||||||
#- "443:443"
|
#- "443:443"
|
||||||
# TODO: serve staatic files directly from nginx
|
# TODO: serve staatic files directly from nginx
|
||||||
#- ./www:/var/www/html:ro
|
#- ./www:/var/www/html:ro
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue