chore(docker): add test compose fixtures

This commit is contained in:
2026-05-04 17:02:56 +02:00 Unverified
parent daf7894f27
commit 01d8455df6
10 changed files with 163 additions and 5 deletions
+9
View File
@@ -0,0 +1,9 @@
FROM python:3.14-slim
WORKDIR /srv/www
COPY index.html ./
EXPOSE 8080
CMD ["python", "-m", "http.server", "8080", "--bind", "0.0.0.0", "--directory", "/srv/www"]
+6
View File
@@ -0,0 +1,6 @@
services:
web:
build: .
container_name: example-http-two
ports:
- "18082:8080"
+11
View File
@@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTTP Two</title>
</head>
<body>
<h1>Example HTTP Two</h1>
<p>This container serves a static page with Python's http.server.</p>
</body>
</html>