Feat: add http-server

This commit is contained in:
cheliangzhao 2023-09-28 18:10:01 +08:00
commit 0a1524de54
3 changed files with 20 additions and 0 deletions

1
http-simple-server-python/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
resource

View File

@ -0,0 +1,7 @@
FROM python:alpine
WORKDIR /resource
EXPOSE 8000
CMD ["python", "-m", "http.server"]

View File

@ -0,0 +1,12 @@
version: '3'
services:
app:
image: http-server
build: .
restart: always
volumes:
- "./resource:/resource"
ports:
- "8000:8000"