-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile_armhf
40 lines (40 loc) · 1.13 KB
/
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
ARG ARCH=frommakefile
ARG DOCKERSRC=frommakefile
ARG USERNAME=frommakefile
#
FROM ${USERNAME}/${DOCKERSRC}:${ARCH}
#
ARG PUID=1001
ARG PGID=1001
#
ENV AKAUNTING_SRC=/opt/akaunting/akaunting.zip
RUN set -xe \
&& apk add --no-cache --purge -uU \
curl \
unzip \
php7-ctype \
php7-dom \
php7-gd \
php7-mysqli \
php7-mysqlnd \
php7-openssl \
php7-pdo_mysql \
php7-fileinfo \
php7-posix \
php7-session \
php7-tokenizer \
php7-xml \
php7-zip \
php7-zlib \
&& mkdir -p /opt/akaunting \
&& VERSION=$(curl -sX GET "https://api.github.com/repos/akaunting/akaunting/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]') \
&& ( [[ -z "${VERSION}" ]] && exit 1 || true ) \
&& echo "Akaunting version: ${VERSION}" > /opt/akaunting/version \
&& curl -o ${AKAUNTING_SRC} -SL "https://github.com/akaunting/akaunting/releases/download/${VERSION}/Akaunting_${VERSION}-Stable.zip" \
&& unzip -qt ${AKAUNTING_SRC} \
&& rm -rf /var/cache/apk/* /tmp/*
# add local files
COPY root/ /
# ports, volumes etc from php
# ENTRYPOINT ["/init"]