Updated dockerfile
This commit is contained in:
1 parent
d29433b292
commit
602dfbe54d
5 files changed
+40
-16
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.idea
|
||||||
|
.dockerignore
|
||||||
|
Dockerfile
|
||||||
|
_backup*
|
||||||
|
*.md
|
||||||
+8
-11
@@ -1,13 +1,10 @@
|
|||||||
FROM debian:bookworm-slim
|
FROM php:8.3-apache
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
php \
|
# Enable the Apache modules our .htaccess relies on, and allow .htaccess overrides.
|
||||||
apache2 \
|
# Done before COPY so editing site files doesn't bust this layer.
|
||||||
libapache2-mod-php \
|
RUN a2enmod expires headers deflate \
|
||||||
git \
|
&& sed -ri 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
COPY . /var/www/html
|
COPY . /var/www/html
|
||||||
RUN rm -f /var/www/html/index.html
|
|
||||||
RUN sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
|
|
||||||
RUN a2enmod expires headers deflate
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["apache2ctl", "-D", "FOREGROUND"]
|
|
||||||
+9
-4
@@ -40,8 +40,8 @@ article h2, section h2 {
|
|||||||
margin-bottom:4rem;
|
margin-bottom:4rem;
|
||||||
}
|
}
|
||||||
.home-tagline {
|
.home-tagline {
|
||||||
font-family:'UnifrakturMaguntia', serif; font-size:1.9rem;
|
font-family:'EB Garamond', serif; font-style:italic; font-size:clamp(1.4rem, 4vw, 2rem);
|
||||||
color:#c0392b; text-align:center;
|
color:#c0392b; text-align:center; line-height:1.4; max-width:42rem; padding:0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page { padding-top:4rem; }
|
.page { padding-top:4rem; }
|
||||||
@@ -71,12 +71,17 @@ article h2, section h2 {
|
|||||||
background-color:rgba(192,57,43,.08);
|
background-color:rgba(192,57,43,.08);
|
||||||
box-shadow:0 0 22px rgba(192,57,43,.32), inset 0 0 0 1px rgba(192,57,43,.5);
|
box-shadow:0 0 22px rgba(192,57,43,.32), inset 0 0 0 1px rgba(192,57,43,.5);
|
||||||
}
|
}
|
||||||
.lk-row { display:flex; align-items:baseline; justify-content:space-between; gap:.5rem; }
|
.lk-row { display:flex; flex-direction:column; gap:.15rem; }
|
||||||
.lk-title { font-family:'Cinzel', serif; font-size:1.125rem; letter-spacing:.03em; color:#e8e2d8;
|
.lk-title { font-family:'Cinzel', serif; font-size:1.125rem; letter-spacing:.03em; color:#e8e2d8;
|
||||||
|
min-width:0; overflow-wrap:anywhere;
|
||||||
transition:color .15s ease, text-shadow .2s ease; }
|
transition:color .15s ease, text-shadow .2s ease; }
|
||||||
.glow-link:hover .lk-title { color:#e0483b; text-shadow:0 0 10px rgba(224,72,59,.6); }
|
.glow-link:hover .lk-title { color:#e0483b; text-shadow:0 0 10px rgba(224,72,59,.6); }
|
||||||
.lk-domain { color:#8f897e; font-size:1.125rem; font-family:var(--mono); font-style:italic; flex-shrink:0; }
|
.lk-domain { color:#8f897e; font-size:1.125rem; font-family:var(--mono); font-style:italic; overflow-wrap:anywhere; }
|
||||||
.lk-note { display:block; color:#e8e2d8; font-size:1.25rem; margin-top:.125rem; }
|
.lk-note { display:block; color:#e8e2d8; font-size:1.25rem; margin-top:.125rem; }
|
||||||
|
@media (min-width:640px) {
|
||||||
|
.lk-row { flex-direction:row; align-items:baseline; justify-content:space-between; gap:.5rem; }
|
||||||
|
.lk-domain { flex-shrink:0; }
|
||||||
|
}
|
||||||
|
|
||||||
.log-head { display:flex; align-items:baseline; justify-content:space-between; gap:1rem;
|
.log-head { display:flex; align-items:baseline; justify-content:space-between; gap:1rem;
|
||||||
border-bottom:1px solid #242424; padding-bottom:.75rem; margin-bottom:1.25rem; }
|
border-bottom:1px solid #242424; padding-bottom:.75rem; margin-bottom:1.25rem; }
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"quotes": [
|
||||||
|
"Ich bin ein... hot dog.",
|
||||||
|
"There ain't no shame in looking for a better world",
|
||||||
|
"You can’t live a bad life and have good things happen to you",
|
||||||
|
"Get back to work, or you're fired.",
|
||||||
|
"Welcome in.",
|
||||||
|
"He who has a why to live can bear almost any how."
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -3,6 +3,10 @@ $description = 'Welcome in. Make yourself at home.';
|
|||||||
$gif_files = glob($_SERVER['DOCUMENT_ROOT'] . '/assets/gifs/*.gif');
|
$gif_files = glob($_SERVER['DOCUMENT_ROOT'] . '/assets/gifs/*.gif');
|
||||||
$gifs = array_map(fn($f) => '/assets/gifs/' . basename($f), $gif_files);
|
$gifs = array_map(fn($f) => '/assets/gifs/' . basename($f), $gif_files);
|
||||||
$default = !empty($gifs) ? $gifs[array_rand($gifs)] : ''; // random gif, server-side, no JS
|
$default = !empty($gifs) ? $gifs[array_rand($gifs)] : ''; // random gif, server-side, no JS
|
||||||
|
|
||||||
|
$quotes = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/assets/data/quotes.json'), true)['quotes'] ?? [];
|
||||||
|
$quote = !empty($quotes) ? $quotes[array_rand($quotes)] : 'Welcome in.'; // random quote, no JS
|
||||||
|
|
||||||
include $_SERVER['DOCUMENT_ROOT'] . '/includes/head.php';
|
include $_SERVER['DOCUMENT_ROOT'] . '/includes/head.php';
|
||||||
?>
|
?>
|
||||||
<body>
|
<body>
|
||||||
@@ -12,7 +16,7 @@ include $_SERVER['DOCUMENT_ROOT'] . '/includes/head.php';
|
|||||||
<div id="gif-frame">
|
<div id="gif-frame">
|
||||||
<img id="main-gif" src="<?= htmlspecialchars($default) ?>" alt="">
|
<img id="main-gif" src="<?= htmlspecialchars($default) ?>" alt="">
|
||||||
</div>
|
</div>
|
||||||
<p class="home-tagline">Welcome in. Make yourself at home.</p>
|
<p class="home-tagline"><?= htmlspecialchars($quote) ?></p>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in new issue
Block a user