chore(docker): add test compose fixtures
This commit is contained in:
@@ -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"]
|
||||
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
container_name: example-http-one
|
||||
ports:
|
||||
- "18081:8080"
|
||||
@@ -0,0 +1,11 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTTP One</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Example HTTP One</h1>
|
||||
<p>This container serves a static page with Python's http.server.</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user