-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
69 lines (53 loc) · 1.6 KB
/
Dockerfile
File metadata and controls
69 lines (53 loc) · 1.6 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM ubuntu
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get -y install \
software-properties-common
RUN apt-get install webp -y
RUN apt-get install unzip -y
# Install Apache and PHP
RUN add-apt-repository ppa:ondrej/php && \
apt-get update && \
apt-get -y install \
zip \
curl \
apache2 \
php8.1 \
libapache2-mod-php8.1 \
php8.1-mysql \
php8.1-curl \
php8.1-gd \
php8.1-imagick \
php8.1-cli \
php8.1-mbstring \
php8.1-zip \
php8.1-xml \
php8.1-soap \
php8.1-xdebug \
php8.1-pcov \
php8.1-redis \
--no-install-recommends && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Enable apache mods
RUN a2enmod rewrite headers expires php8.1
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php && \
php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
composer clear-cache
# Install NodeJS
RUN apt -y install dirmngr apt-transport-https lsb-release ca-certificates
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt -y install nodejs
RUN apt install iputils-ping -y
RUN apt install telnet -y
RUN apt install vim -y
RUN apt install php8.1-sqlite3 -y
COPY image-files/ /
RUN rm ~/.ssh -rf
RUN mkdir ~/.ssh && ln -s /run/secrets/host_ssh_key ~/.ssh/id_rsa
WORKDIR /app
EXPOSE 80
ADD start.sh /
RUN chmod +x /start.sh
CMD ["/start.sh"]
#CMD ["/usr/sbin/apachectl","-DFOREGROUND"]