This repository was archived by the owner on Oct 18, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (36 loc) · 1.18 KB
/
Dockerfile
File metadata and controls
40 lines (36 loc) · 1.18 KB
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
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.13
# set version label
ARG BUILD_DATE
ARG VERSION
ARG PHOTOSHOW_COMMIT
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache \
curl \
fbida-exiftran \
ffmpeg \
imagemagick \
jq \
php7-exif \
php7-gd \
php7-imagick \
zip && \
echo "**** Tag this image with current version ****" && \
if [ -z ${PHOTOSHOW_COMMIT+x} ]; then \
PHOTOSHOW_COMMIT=$(curl -sX GET https://api.github.com/repos/thibaud-rohmer/PhotoShow/commits/master \
| jq -r '. | .sha'); \
fi && \
echo ${PHOTOSHOW_COMMIT} > /version.txt && \
echo "**** configure php ****" && \
echo "[www]" >> /etc/php7/php-fpm.conf && \
echo "php_admin_value[upload_max_filesize] = 10M" >> /etc/php7/php-fpm.conf && \
echo "php_admin_value[post_max_size] = 10M" >> /etc/php7/php-fpm.conf && \
echo "php_admin_value[memory_limit] = 64M" >> /etc/php7/php-fpm.conf && \
echo "php_admin_value[max_execution_time] = 15" >> /etc/php7/php-fpm.conf
# add local files
COPY root/ /
# ports and volumes
EXPOSE 80
VOLUME /config /Thumbs /Pictures