-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
36 lines (33 loc) · 1000 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
36
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.12
# set version label
ARG DOCKER_HUB_USER
ARG IMAGE_BUILD_DATE
ARG IMAGE_VERSION
ARG FILEGATOR_RELEASE
LABEL build_version="${DOCKER_HUB_USER} version:- ${IMAGE_VERSION} Build-date:- ${IMAGE_BUILD_DATE}"
LABEL maintainer="${DOCKER_HUB_USER}"
# install filegator
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
php7-ctype \
php7-curl \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-tokenizer \
php7-zip \
unzip \
curl && \
echo "**** install filegator ****" && \
if [ -z ${FILEGATOR_RELEASE+x} ]; then \
FILEGATOR_RELEASE=$(curl -sX GET "https://api.github.com/repos/filegator/filegator/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/filegator.zip -L \
"https://github.com/filegator/filegator/releases/download/${FILEGATOR_RELEASE}/filegator_${FILEGATOR_RELEASE}.zip" && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
# add local files
COPY root/ /