forked from klaussilveira/gitlist
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
46 lines (37 loc) · 1.34 KB
/
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
37
38
39
40
41
42
43
44
45
46
#docker login
#docker build -t patrikx3/p3x-gitlist .
##docker tag IMAGE_ID patrikx3/p3x-gitlist:latest
#docker push patrikx3/p3x-gitlist:latest
#docker tag IMAGE_ID patrikx3/p3x-gitlist:2019.10.525
#docker push patrikx3/p3x-gitlist
#docker images
#docker rmi -f IMAGE_ID
FROM ubuntu:latest
MAINTAINER patrikx3/p3x-gitlist - Patrik Laszlo
ENV COMPOSER_PROCESS_TIMEOUT=3600
ENV DEBIAN_FRONTEND=noninteractive
#ENV P3XRS_DOCKER_HOME=/settings
RUN apt-get -y update
RUN apt-get -y install git
RUN apt-get -y install php --allow-unauthenticated
RUN apt-get -y install php-fpm --allow-unauthenticated
RUN apt-get -y install nginx
RUN apt-get -y install curl
RUN apt-get -y install git
RUN apt-get -y install composer
#RUN apt-get install -y build-essential
# node
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get -y install nodejs
RUN node -v
ADD ./build/p3x-gitlist /gitlist
RUN mkdir -p /run/php
RUN echo "cgi.fix_pathinfo = 0;" >> /etc/php/7.4/fpm/php.ini
RUN echo "max_input_vars = 10000;" >> /etc/php/7.4/fpm/php.ini
RUN echo "max_execution_time = 10000;" >> /etc/php/7.4/fpm/php.ini
RUN echo "date.timezone = Europe/Budapest;" >> /etc/php/7.4/fpm/php.ini
RUN sed -i 's/;daemonize = yes/daemonize = no/g' /etc/php/7.4/fpm/php-fpm.conf
RUN chown -R www-data:www-data /gitlist
RUN chown -R www-data:www-data /var/git
EXPOSE 12345
#CMD p3x-redis