forked from UltimaPHP/UltimaPHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (22 loc) · 1001 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
FROM php:7.3.2-cli-stretch
MAINTAINER Youri hideOut <[email protected]>
RUN apt update \
&& apt install -y unzip libgmp-dev
RUN pecl install mongodb \
&& docker-php-ext-install sockets gmp \
&& docker-php-ext-enable mongodb
RUN ggID='1SsMQsIq_EhAbofKECYXkiKzSM0D63YE-' \
&& ggURL='https://drive.google.com/uc?export=download' \
&& filename="$(curl -sc /tmp/gcokie "${ggURL}&id=${ggID}" | grep -o '="uc-name.*</span>' | sed 's/.*">//;s/<.a> .*//')" \
&& getcode="$(awk '/_warning_/ {print $NF}' /tmp/gcokie)" \
&& curl -Lb /tmp/gcokie "${ggURL}&confirm=${getcode}&id=${ggID}" -o "/tmp/${filename}"
WORKDIR /ultimaphp
COPY . ./
RUN mkdir -p /UOLocation
RUN unzip -o /tmp/Muls.zip -d /UOLocation
RUN rm -rf /tmp/Muls.zip
# RUN DOCKER_IP=$(awk 'END{print $1}' /etc/hosts); sed -i -- "s/ip=127.0.0.1/ip=${DOCKER_IP}/g" ultimaphp.ini
RUN sed -i -- 's/ip=127.0.0.1/ip=0.0.0.0/g' ultimaphp.ini
RUN sed -i -- 's/host=127.0.0.1/host=mongo/g' ultimaphp.ini
CMD [ "php", "startserver.php" ]
EXPOSE 2593