Files
streamstack/Dockerfile.nginx
T
unkinben 2309e9f43a Initial commit — StreamStack v1
Five-service streaming platform: auth, catalogue, streaming, ingest, thumbnailer.
Includes React frontend served by nginx, NATS JetStream event bus, aiobotocore
async S3, PyAV video metadata + thumbnail extraction, service-to-service JWT auth,
and a full unit + e2e test suite.
2026-05-04 22:16:39 +10:00

22 lines
587 B
Docker

# syntax=docker/dockerfile:1.4
# Stage 1: build the React frontend
FROM node:22-alpine AS frontend-build
WORKDIR /app
COPY frontend/package*.json ./
RUN npm install
COPY frontend/ .
ARG VITE_GUEST_EMAIL=guest@streamstack.local
ARG VITE_GUEST_PASSWORD=streamstack-guest
RUN VITE_GUEST_EMAIL=$VITE_GUEST_EMAIL \
VITE_GUEST_PASSWORD=$VITE_GUEST_PASSWORD \
npm run build
# Stage 2: nginx serves the frontend and proxies API calls
FROM nginx:1.26-alpine
COPY --from=frontend-build /app/dist /usr/share/nginx/html
COPY nginx/conf.d/streamstack.conf /etc/nginx/conf.d/default.conf