-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 939 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
FROM richarvey/nginx-php-fpm:3.1.6
LABEL maintainer="Ali00h"
ENV RUN_SCRIPTS=1
# Install NPM
RUN apk add --update npm
# End
# Create Log Directory
RUN mkdir /var/log/cronlog
RUN chmod 755 /var/log/cronlog
# End
# Copy laravel for reports
RUN mkdir /var/www/html/webui
COPY code/webui/ /var/www/html/webui/
WORKDIR /var/www/html/webui/
RUN composer install
RUN npm install
RUN npm run dev
# End
# Copy Nginx Config
COPY config/nginx.conf /etc/nginx/sites-enabled/default.conf
# End
# Change startup script
COPY config/custom_script.sh /var/www/html/scripts/custom_script.sh
RUN chmod +x /var/www/html/scripts/custom_script.sh
# End
# Create timestamp.sh for add time to log
COPY config/timestamp.sh /var/www/html/timestamp.sh
RUN chmod +x /var/www/html/timestamp.sh
# End
# Create remove_old_log.sh for add time to log
COPY config/remove_old_log.sh /var/www/html/remove_old_log.sh
RUN chmod +x /var/www/html/remove_old_log.sh
# End