File tree 3 files changed +21
-1
lines changed 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM php:7.2-apache
2
2
MAINTAINER alb-TEC engineering <
[email protected] >
3
3
4
4
# prepare for pdf creation
5
- RUN apt-get update && apt-get install -y texlive-full
5
+ RUN apt-get update && apt-get install -y texlive-full
6
6
7
7
# overwrite entrypoint
8
8
COPY docker-php-entrypoint /usr/local/bin/
@@ -18,3 +18,12 @@ RUN ln -s /etc/apache2/sites-available/*.conf /etc/apache2/sites-enabled/
18
18
COPY easycom.tgz /var/www/html
19
19
WORKDIR /var/www/html
20
20
RUN tar xfz easycom.tgz
21
+
22
+ ENV HTUSER=admin
23
+ ENV HTPASS=admin
24
+
25
+ VOLUME /var/www/html/easycom-phpbackend/_data
26
+
27
+ ENTRYPOINT ["docker-php-entrypoint" ]
28
+ EXPOSE 80
29
+ CMD ["apache2-foreground" ]
Original file line number Diff line number Diff line change 4
4
# init easycom:
5
5
# ###############################################
6
6
7
+ echo " Prepare storage if not set"
7
8
(
8
9
cd /var/www/html/easycom-phpbackend/
9
10
20
21
chown www-data _data -R
21
22
)
22
23
24
+ echo " Set password from ENV"
25
+ (
26
+ htpasswd -cb /var/www/html/.htpasswd $HTUSER $HTPASS
27
+ )
28
+
23
29
# ###############################################
24
30
# copy of original docker image:
25
31
# ###############################################
Original file line number Diff line number Diff line change
1
+ AuthType Basic
2
+ AuthName "easycom"
3
+ AuthUserFile .htpasswd
4
+ Require valid-user
5
+
1
6
RewriteEngine on
2
7
RewriteRule ^data/(.*)$ easycom-phpbackend/data/$1 [L,QSA]
3
8
RewriteRule ^action/(.*)$ easycom-phpbackend/action/$1 [L,QSA]
You can’t perform that action at this time.
0 commit comments