-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.aarch64
41 lines (36 loc) · 1.06 KB
/
Dockerfile.aarch64
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:arm64v8-3.11
# set label
LABEL maintainer="stuarthua"
# package versions
ARG DIRECTORYLISTER_RELEASE
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
curl \
memcached \
php7-memcached \
php7-tidy \
tar && \
echo "**** configure php-fpm ****" && \
sed -i 's/;clear_env = no/clear_env = no/g' /etc/php7/php-fpm.d/www.conf && \
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \
echo "**** fetch directorylister ****" && \
mkdir -p\
/data && \
if [ -z ${DIRECTORYLISTER_RELEASE+x} ]; then \
DIRECTORYLISTER_RELEASE=$(curl -sX GET "https://api.github.com/repos/stuarthua/directorylister/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/directorylister.tar.gz -L \
"https://github.com/stuarthua/directorylister/archive/${DIRECTORYLISTER_RELEASE}.tar.gz" && \
tar xf \
/tmp/directorylister.tar.gz -C \
/data/ --strip-components=1 && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
# copy local files
COPY root/ /
# ports and volumes
VOLUME /data /config