статичный вариант с докером
This commit is contained in:
commit
96fdbeb3df
12 files changed
+387
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY build.py VERSION ./
|
||||
COPY docs/content.md ./docs/content.md
|
||||
COPY web/index.html web/style.css web/app.js ./web/
|
||||
|
||||
RUN python3 build.py
|
||||
|
||||
USER 10001:10001
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["python3", "-m", "http.server", "8080", "--bind", "0.0.0.0", "--directory", "/app/dist"]
|
||||
Reference in new issue
Block a user