Spotter-VM/lxc-apps/kanboard/image

46 lines
2.5 KiB
Plaintext
Raw Normal View History

IMAGE kanboard_1.2.14-200416
2020-04-04 00:17:24 +02:00
FROM alpine3.11-php7.3_7.3.16-200403
2018-09-13 13:22:15 +02:00
RUN EOF
# Install runtime dependencies
apk --no-cache add php7-dom php7-iconv php7-openssl php7-pdo_pgsql php7-posix php7-simplexml php7-sockets php7-xml php7-zip php7-zlib
# Install build dependencies
apk --no-cache add --virtual .deps git
2020-06-01 22:04:31 +02:00
# Download Kanboard
wget https://github.com/kanboard/kanboard/archive/v1.2.14.zip -O /srv/kanboard.zip
2018-09-13 13:22:15 +02:00
unzip /srv/kanboard.zip -d /srv
2020-03-17 16:49:00 +01:00
mv /srv/kanboard-* /srv/kanboard
2018-09-13 13:22:15 +02:00
# Install plugins
git clone --depth=1 https://github.com/BlueTeck/kanboard_plugin_coverimage /srv/kanboard/plugins/Coverimage
git clone --depth=1 https://github.com/BlueTeck/kanboard_plugin_metadata /srv/kanboard/plugins/Metadata
git clone --depth=1 https://github.com/eSkiSo/Subtaskdate /srv/kanboard/plugins/Subtaskdate
git clone --depth=1 https://github.com/kanboard/plugin-calendar /srv/kanboard/plugins/Calendar
git clone --depth=1 https://github.com/kanboard/plugin-gantt /srv/kanboard/plugins/Gantt
git clone --depth=1 https://github.com/kanboard/plugin-gravatar /srv/kanboard/plugins/Gravatar
git clone --depth=1 https://github.com/kanboard/plugin-registration /srv/kanboard/plugins/Registration
git clone --depth=1 https://github.com/kanboard/plugin-task-board-date /srv/kanboard/plugins/TaskBoardDate
git clone --depth=1 https://github.com/oliviermaridat/kanboard-milestone-plugin /srv/kanboard/plugins/Milestone
git clone --depth=1 https://github.com/trendspotter/kanboard-plugin-budget /srv/kanboard/plugins/Budget # Fork of https://github.com/kanboard/plugin-budget
git clone --depth=1 https://github.com/trendspotter/kanboard-plugin-chat /srv/kanboard/plugins/Chat # Fork of https://github.com/kanboard/plugin-chat
git clone --depth=1 https://github.com/trendspotter/kanboard-plugin-relationgraph /srv/kanboard/plugins/Relationgraph # Fork of https://github.com/xavividal/kanboard-plugin-relationgraph
git clone --depth=1 https://github.com/trendspotter/kanboard-plugin-sms-2fa /srv/kanboard/plugins/SmsTwoFactor # Fork of https://github.com/kanboard/plugin-sms-2fa
EOF
COPY image.d
2018-09-13 13:22:15 +02:00
RUN EOF
2018-09-13 13:22:15 +02:00
# Create OS user
2020-03-17 16:49:00 +01:00
addgroup -S -g 8080 kanboard
adduser -S -u 8080 -h /srv/kanboard -s /bin/false -g kanboard -G kanboard kanboard
2018-09-13 13:22:15 +02:00
# Cleanup
apk --no-cache del .deps
rm -f /srv/kanboard.zip
find /srv/kanboard -name '.git*' -exec rm -rf {} +
EOF
2020-02-09 15:54:46 +01:00
CMD /bin/s6-svscan /etc/services.d