Skip to content

Commit 6804d32

Browse files
michieldmarianaballa
authored andcommitted
do not remove composer.json when building
1 parent 8bdb3b2 commit 6804d32

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed

.github/workflows/build-release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ jobs:
163163
public_html/lists/base/.htaccess
164164
public_html/lists/base/phpunit.xml.dist
165165
public_html/lists/base/composer.lock
166-
public_html/lists/base/composer.json
167166
public_html/lists/base/CODE_OF_CONDUCT.md
168167
public_html/lists/admin/ui/default
169168
)

Dockerfile.release

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
FROM debian:buster-slim
3+
4+
LABEL maintainer="[email protected]"
5+
6+
RUN apt-get update && apt-get upgrade -y
7+
8+
RUN apt-get install -y apt-utils \
9+
vim apache2 net-tools php-mysql \
10+
libapache2-mod-php php-curl php-gd \
11+
git cron php-imap php-xml php-zip php-mbstring
12+
13+
RUN useradd -d /var/www/phpList3 phplist
14+
15+
ARG VERSION=unknown
16+
RUN echo VERSION=${VERSION}
17+
18+
RUN rm -rf /var/www/phpList3 && mkdir -p /var/www/phpList3
19+
RUN rm -rf /etc/phplist && mkdir /etc/phplist
20+
21+
COPY docker/docker-apache-phplist.conf /etc/apache2/sites-available
22+
COPY docker/docker-entrypoint.sh /usr/local/bin/
23+
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh
24+
RUN a2ensite docker-apache-phplist
25+
RUN a2enmod rewrite
26+
27+
COPY docker/phplist-crontab /etc/cron.d/
28+
COPY docker/docker-phplist-config-live.php /etc/phplist/config.php
29+
30+
COPY phplist-${VERSION}.tgz ./
31+
32+
RUN tar zvxf phplist-$VERSION.tgz
33+
RUN mv phplist-$VERSION/* /var/www/phpList3/
34+
35+
RUN rm -f /etc/apache2/sites-enabled/000-default.conf && \
36+
cd /var/www/ && find . -type d -name .git -print0 | xargs -0 rm -rf && \
37+
find . -type d -print0 | xargs -0 chmod 755 && \
38+
find . -type f -print0 | xargs -0 chmod 644
39+
40+
RUN chown -R www-data: /var/www/phpList3
41+
42+
EXPOSE 80
43+
44+
VOLUME ["/var/www", "/var/log/apache2"]
45+
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

docker/docker-apache-phplist.conf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ServerName phplist.docker
2+
<VirtualHost *:80>
3+
ServerAdmin webmaster@localhost
4+
DocumentRoot /var/www/phpList3/public_html/
5+
SetEnv ConfigFile /etc/phplist/config.php
6+
DirectoryIndex index.php
7+
php_value upload_max_filesize 50M
8+
php_value post_max_size 100M
9+
LogLevel core:info
10+
11+
ErrorLog ${APACHE_LOG_DIR}/phplist_error.log
12+
CustomLog ${APACHE_LOG_DIR}/phplist_access.log vhost_combined
13+
14+
<Directory /var/www/phpList3>
15+
AllowOverride All
16+
</Directory>
17+
</VirtualHost>

0 commit comments

Comments
 (0)