forked from vortexau/SMF-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (34 loc) · 1.17 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
FROM php:5.6.35-apache-jessie
LABEL maintainer="Humenius <[email protected]>"
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y upgrade \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install apt-utils \
libcurl4-openssl-dev \
libpq-dev \
postgresql-client \
wget \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install \
mysql \
pgsql
EXPOSE 80/tcp
# Download SMF
RUN mkdir -p /var/www/html \
&& cd /var/www/html \
&& wget "https://download.simplemachines.org/index.php/smf_2-0-17_install.tar.gz" \
&& tar zxf smf_2-0-17_install.tar.gz
# Set the permissions SMF wants. They say 777 suggested!
RUN chmod 777 /var/www/html/attachments \
/var/www/html/avatars \
/var/www/html/cache \
/var/www/html/Packages \
/var/www/html/Packages/installed.list \
/var/www/html/Smileys \
/var/www/html/Themes \
/var/www/html/agreement.txt \
/var/www/html/Settings.php \
/var/www/html/Settings_bak.php
# Setup the Apache config file to serve this application
# Serve the application, so the user could run the install manually
CMD ["/usr/sbin/apachectl","-DFOREGROUND"]