forked from docwhat/docker-image-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (29 loc) · 881 Bytes
/
Dockerfile
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
FROM nginx:1
ENV FGALLERY_VERSION 1.8.2
RUN export DEBIAN_FRONTEND noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
imagemagick \
exiftran \
zip \
liblcms2-utils \
libimage-exiftool-perl \
libjson-perl \
libjson-xs-perl \
jpegoptim \
pngcrush \
p7zip \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# extract in /src, mv to /app
RUN mkdir /fgallery \
&& curl -sL "https://github.com/wavexx/fgallery/archive/fgallery-${FGALLERY_VERSION}.tar.gz" \
| tar xz -C /fgallery \
&& ln -nsf "/fgallery/fgallery-fgallery-${FGALLERY_VERSION}/"* /fgallery
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
COPY noimages.html /
VOLUME /images
WORKDIR /images
ENTRYPOINT ["/docker-entrypoint.sh"]