-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (26 loc) · 1.12 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
FROM ubuntu:16.04
MAINTAINER https://github.com/mowfax/webControl_docker
EXPOSE 443/tcp
ENV PORT_PREFIX=3429 \
ADMINUSER=admin \
ADMINPASS=password
RUN apt-get update -y && apt-get install -y curl
# run from master branch:
# RUN curl -s https://raw.githubusercontent.com/3RaGaming/Web_Control/master/install.sh > /install.sh && \
# chmod +x /install.sh && \
# /install.sh --silent && \
# apt-get autoremove -y
# run from temporary patch branch:
RUN curl -s https://raw.githubusercontent.com/mowfax/Web_Control/patch-1/install.sh > /install.sh && \
chmod +x /install.sh && \
/install.sh --silent && \
apt-get autoremove -y
# enable user www-data to sudo screen and gcc
COPY sudoers /etc/sudoers
RUN adduser www-data sudo
# increase upload filesize for webinterface
RUN mv /etc/php/7.0/apache2/php.ini /etc/php/7.0/apache2/php_org.ini && \
sed -e 's:upload_max_filesize = 2M:upload_max_filesize = 100M:' \
-e 's:post_max_size = 8M:post_max_size = 100M:' /etc/php/7.0/apache2/php_org.ini > /etc/php/7.0/apache2/php.ini
COPY ./docker-entrypoint.sh /
CMD ["/bin/bash","/docker-entrypoint.sh"]