-
-
Notifications
You must be signed in to change notification settings - Fork 616
/
Dockerfile
26 lines (20 loc) · 876 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
FROM php:7-cli-alpine
LABEL maintainer.name="xczh" \
maintainer.email="[email protected]" \
maintainer.description="OLAINDEX: Another OneDrive Directory Index"
ENV LANG=C.UTF-8
WORKDIR /OLAINDEX
RUN apk add --no-cache tzdata git composer && \
echo "Asia/Shanghai" > /etc/timezone && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
apk del tzdata && \
docker-php-ext-install bcmath && \
git clone --depth 1 https://github.com/WangNingkai/OLAINDEX.git . && \
composer install -vvv && \
composer run install-app && \
addgroup -g 900 -S olaindex && \
adduser -h /OLAINDEX -s /bin/sh -G olaindex -u 900 -S olaindex && \
chown -R olaindex:olaindex /OLAINDEX && \
chmod 755 /OLAINDEX/storage
EXPOSE 8000
CMD ["su", "olaindex", "-c", "php artisan serve --host=0.0.0.0 --port=8000 --tries=0 --no-interaction"]