forked from linuxserver/docker-organizr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.armhf
41 lines (36 loc) · 972 Bytes
/
Dockerfile.armhf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM lsiobase/nginx:arm32v7-3.9
# set version label
ARG ORGANIZR_COMMIT
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs, homerr"
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
curl \
php7-curl \
php7-ldap \
php7-pdo_sqlite \
php7-sqlite3 \
php7-zip && \
echo "**** fetch organizr ****" && \
mkdir -p\
/var/www/html && \
if [ -z ${ORGANIZR_COMMIT+x} ]; then \
ORGANIZR_COMMIT=$(curl -sX GET "https://api.github.com/repos/causefx/Organizr/branches/v1-master" \
| awk '/sha/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/organizr.tar.gz -L \
"https://github.com/causefx/Organizr/archive/${ORGANIZR_COMMIT}.tar.gz" && \
tar xf \
/tmp/organizr.tar.gz -C \
/var/www/html/ --strip-components=1 && \
echo "**** cleanup ****" && \
rm -rf \
/root/.composer
# add local files
COPY root/ /
# ports and volumes
VOLUME /config