Now stuff is installed in the container instead of the image
This commit is contained in:
@@ -2,21 +2,7 @@
|
||||
|
||||
/bin/sh /entrypoint/gen-cert.sh
|
||||
|
||||
for file in /etc/nginx/sites-available/*.conf; do
|
||||
ln -s "$file" "/etc/nginx/sites-enabled/"
|
||||
done
|
||||
|
||||
rm /etc/nginx/sites-enabled/*.conf
|
||||
mv /tmp/buildtime/default /etc/nginx/sites-available/default
|
||||
|
||||
if [ "$(ls -A /etc/letsencrypt)" ]; then
|
||||
mv /tmp/buildtime/letsencrypt/* /etc/letsencrypt
|
||||
fi
|
||||
|
||||
# One-liner with test
|
||||
|
||||
cp -a /tmp/buildtime/www/html* /var/www/html && rm -rf /tmp/buildtime/www/html
|
||||
chown -R www-data:www-data /var/www
|
||||
service nginx start
|
||||
# Run the CMD that was passed (or default)
|
||||
exec "$@"
|
||||
|
||||
tail -f /dev/null
|
||||
|
Reference in New Issue
Block a user