Skip to content

Commit 420a6c3

Browse files
Create Dockerfile
1 parent a6f84cd commit 420a6c3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM php:7.4.10-apache
2+
3+
MAINTAINER Supernova3339 <[email protected]>
4+
5+
ENV DEBIAN_FRONTEND noninteractive
6+
7+
RUN a2enmod rewrite
8+
RUN a2enmod ssl
9+
RUN service apache2 restart
10+
11+
RUN apt-get update && \
12+
apt-get install unzip -y && \
13+
apt-get clean all && \
14+
curl -o /icecoder.zip 'https://downloads.icecoder.net/ICEcoder-8.1.zip' && \
15+
unzip -q /icecoder.zip -d /tmp/ && \
16+
cp -r /tmp/ICE* /var/www/html/icecoder && \
17+
echo "<!DOCTYPE html>\n<html>\n<head>\n<title>Welcome to your new site</title>\n</head>\n<body style=\"text-align: center; font-family: monospace\">\n<h1>Welcome!</h1>\n<h1>Dockerized By The <a href="https://easypanel.community">Easypanel Community</a></h1>\n<p>Head to ICEcoder at <a href=\"/icecoder\">localhost:8080/icecoder</a> to create a password and start coding!</p>\n</body>\n</html>" > /var/www/html/index.php && \
18+
chown -R www-data.www-data /var/www/html && \
19+
chmod 755 /var/www/html && \
20+
rm -rf /icecoder.zip /tmp/ICE*
21+
22+
VOLUME icecoder

0 commit comments

Comments
 (0)