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.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user