Skip to content

Commit fd0ef80

Browse files
committed
renamed Dockerfile to Dockerfile.amd64 and added arm arch
1 parent 15cffb6 commit fd0ef80

File tree

5 files changed

+146
-0
lines changed

5 files changed

+146
-0
lines changed

Dockerfile.aarch64

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# using ideas/code from other sparklyballs templates
2+
# set variable to get archive based on github api data (sparklyballs heimdall inspiration)
3+
4+
FROM lsiobase/alpine.nginx.arm64:3.7
5+
# Add qemu to build on x86_64 systems
6+
COPY qemu-aarch64-static /usr/bin
7+
# set version label
8+
ARG BUILD_DATE
9+
ARG VERSION
10+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
11+
LABEL maintainer="homerr"
12+
13+
# install packages
14+
RUN \
15+
echo "**** install build packages ****" && \
16+
apk add --no-cache \
17+
curl \
18+
php7-openssl \
19+
php7-pdo_mysql \
20+
php7-mbstring \
21+
php7-tidy \
22+
php7-phar \
23+
php7-dom \
24+
php7-tokenizer \
25+
php7-gd \
26+
php7-mysqlnd \
27+
php7-tidy \
28+
php7-simplexml \
29+
tar && \
30+
31+
echo "**** configure php-fpm to pass env vars ****" && \
32+
sed -i \
33+
's/;clear_env = no/clear_env = no/g' \
34+
/etc/php7/php-fpm.d/www.conf && \
35+
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
36+
37+
echo "**** get bookstack ****" && \
38+
39+
BSAPP_VER="$(curl -sX GET https://api.github.com/repos/BookStackApp/BookStack/releases/latest | grep 'tag_name' | cut -d\" -f4)" && \
40+
41+
mkdir -p\
42+
/var/www/html && \
43+
44+
curl -o \
45+
/tmp/bookstack.tar.gz -L \
46+
"https://github.com/BookStackApp/BookStack/archive/${BSAPP_VER}.tar.gz" && \
47+
48+
tar xf \
49+
/tmp/bookstack.tar.gz -C \
50+
/var/www/html/ --strip-components=1 && \
51+
52+
cp /var/www/html/.env.example /var/www/html/.env && \
53+
54+
echo "**** get composer ****" && \
55+
56+
cd /tmp && \
57+
curl -sS https://getcomposer.org/installer | php && \
58+
mv /tmp/composer.phar /usr/local/bin/composer && \
59+
60+
echo "**** run composer install ****"
61+
62+
composer install -d /var/www/html/ && \
63+
64+
echo "**** cleanup ****" && \
65+
rm -rf \
66+
/root/.composer \
67+
/tmp/*
68+
69+
# copy local files
70+
COPY root/ /
71+
72+
# ports and volumes
73+
VOLUME /config
File renamed without changes.

Dockerfile.armhf

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# using ideas/code from other sparklyballs templates
2+
# set variable to get archive based on github api data (sparklyballs heimdall inspiration)
3+
4+
FROM lsiobase/alpine.nginx.armhf:3.7
5+
# Add qemu to build on x86_64 systems
6+
COPY qemu-arm-static /usr/bin
7+
# set version label
8+
ARG BUILD_DATE
9+
ARG VERSION
10+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
11+
LABEL maintainer="homerr"
12+
13+
# install packages
14+
RUN \
15+
echo "**** install build packages ****" && \
16+
apk add --no-cache \
17+
curl \
18+
php7-openssl \
19+
php7-pdo_mysql \
20+
php7-mbstring \
21+
php7-tidy \
22+
php7-phar \
23+
php7-dom \
24+
php7-tokenizer \
25+
php7-gd \
26+
php7-mysqlnd \
27+
php7-tidy \
28+
php7-simplexml \
29+
tar && \
30+
31+
echo "**** configure php-fpm to pass env vars ****" && \
32+
sed -i \
33+
's/;clear_env = no/clear_env = no/g' \
34+
/etc/php7/php-fpm.d/www.conf && \
35+
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
36+
37+
echo "**** get bookstack ****" && \
38+
39+
BSAPP_VER="$(curl -sX GET https://api.github.com/repos/BookStackApp/BookStack/releases/latest | grep 'tag_name' | cut -d\" -f4)" && \
40+
41+
mkdir -p\
42+
/var/www/html && \
43+
44+
curl -o \
45+
/tmp/bookstack.tar.gz -L \
46+
"https://github.com/BookStackApp/BookStack/archive/${BSAPP_VER}.tar.gz" && \
47+
48+
tar xf \
49+
/tmp/bookstack.tar.gz -C \
50+
/var/www/html/ --strip-components=1 && \
51+
52+
cp /var/www/html/.env.example /var/www/html/.env && \
53+
54+
echo "**** get composer ****" && \
55+
56+
cd /tmp && \
57+
curl -sS https://getcomposer.org/installer | php && \
58+
mv /tmp/composer.phar /usr/local/bin/composer && \
59+
60+
echo "**** run composer install ****"
61+
62+
composer install -d /var/www/html/ && \
63+
64+
echo "**** cleanup ****" && \
65+
rm -rf \
66+
/root/.composer \
67+
/tmp/*
68+
69+
# copy local files
70+
COPY root/ /
71+
72+
# ports and volumes
73+
VOLUME /config

qemu-aarch64-static

3.65 MB
Binary file not shown.

qemu-arm-static

3.53 MB
Binary file not shown.

0 commit comments

Comments
 (0)