forked from wlox/wlox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (29 loc) · 967 Bytes
/
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
53
54
55
56
57
58
FROM phpwloxtest:0.1
MAINTAINER David Rodriguez <david@goldenfrogtech.com>
#update system
# install
#RUN apt-get update && apt-get install -y vim curl git
#directorio frontend
WORKDIR /opt/wlox/wlox/frontend/htdocs/
ADD ./frontend/ /opt/wlox/wlox/frontend/htdocs/
#Directorio API
WORKDIR /opt/wlox/wlox/api/htdocs/
ADD ./api/ /opt/wlox/wlox/api/htdocs/
RUN mv -v ./cfg/cfg.php.example ./cfg/cfg.php
#Directorio Auth
WORKDIR /opt/wlox/wlox/auth/htdocs/
ADD ./auth/ /opt/wlox/wlox/auth/htdocs/
RUN mv -v cfg.php.example cfg.php
#Directorio CRON
WORKDIR /opt/wlox/wlox/cron/
ADD ./cron/ /opt/wlox/wlox/cron/
RUN mv -v cfg.php.example cfg.php
#Directorio Backstage2
WORKDIR /opt/wlox/wlox/backstage2/
ADD ./backstage2/ /opt/wlox/wlox/backstage2/
RUN mv -v cfg.php.example cfg.php
#Virtualhost configs
WORKDIR /etc/apache2/
ADD ./etc/ /etc/apache2/
RUN cp apache2.conf.example sites-available/000-default.conf
RUN service apache2 restart