mirror of
https://github.com/tlsnotary/tlsn-extension.git
synced 2026-01-08 20:48:03 -05:00
* demo: split generate and start in separate scripts * Include demo html and plugin files in docker image * Build docker images for demo * Add Cargo.lock
18 lines
397 B
Docker
18 lines
397 B
Docker
# Build stage
|
|
FROM rust:latest AS builder
|
|
|
|
# Accept build arguments with defaults
|
|
ARG VERIFIER_HOST=localhost:7047
|
|
ARG SSL=false
|
|
|
|
WORKDIR /app
|
|
COPY index.html *.ico *.js *.sh /app/
|
|
|
|
# Pass build args as environment variables to generate.sh
|
|
RUN VERIFIER_HOST="${VERIFIER_HOST}" SSL="${SSL}" ./generate.sh
|
|
|
|
# Runtime stage
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /app/generated /usr/share/nginx/html
|