14 lines
449 B
Docker
14 lines
449 B
Docker
FROM python:3.12-slim AS policy
|
|
WORKDIR /build
|
|
COPY dtf-site.html /build/dtf-site.html
|
|
COPY local /build/local
|
|
RUN python local/compile_web.py
|
|
|
|
FROM nginx:1.28-alpine
|
|
RUN apk upgrade --no-cache
|
|
ENV WEB_INDEX=index.html
|
|
COPY --from=policy /build/default.conf.template /etc/nginx/templates/default.conf.template
|
|
ENV S3_PUBLIC_ENDPOINT=http://localhost:9000
|
|
COPY dtf-site.html /usr/share/nginx/html/index.html
|
|
COPY local/static/ /usr/share/nginx/html/
|