forked from QuackenbushDev/Radium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·52 lines (43 loc) · 1.28 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
47
48
49
50
51
52
# Requires Ubuntu 16.04
FROM lsiobase/ubuntu:xenial
LABEL maintainer "Sam Burney <[email protected]>"
# Disable npm notifications
ENV DISABLE_NOTIFIER true
# Fix 'Pusher' error on composer install
ENV BROADCAST_DRIVER=log
# Disable dpkg frontend to avoid erro rmessages
ENV DEBIAN_FRONTEND=noninteractive
# Install packages
RUN \
rm /etc/cont-init.d/10-adduser && \
apt update && \
apt -yq install apache2 libapache2-mod-php \
php php-mysql php-mbstring php-xml php-zip \
git composer \
npm nodejs-legacy \
freeradius freeradius-mysql \
mysql-client \
cron && \
apt clean && \
a2enmod rewrite && \
npm install gulp-cli -g && \
rm /etc/freeradius/sites-enabled/inner-tunnel
# Install Radium app
RUN git clone https://github.com/samburney/Radium.git /var/www/radium && \
cd /var/www/radium && \
composer install && \
npm install gulp -D && \
npm install laravel-elixir -D && \
gulp && \
chown -R www-data:www-data /var/www/radium && \
chmod -R g+rw /var/www/radium && \
composer clear-cache && \
rm -r node_modules
# Copy helper scripts
COPY ./docker/root/ /
# Web and RADIUS Auth/Acct
EXPOSE 80/tcp 1812/udp 1813/udp
# Redirect Apache logs to stdout/stderr
RUN ln -sf /proc/self/fd/1 /var/log/apache2/access.log && \
ln -sf /proc/self/fd/1 /var/log/apache2/error.log
ENTRYPOINT ["/init"]