19 lines
357 B
Docker
19 lines
357 B
Docker
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"]
|