forked from shouri123/Late-Meet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 832 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (24 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Reproducible build container for Late-Meet Chrome Extension
# Produces a production-ready extension bundle in /app/dist/
#
# Usage:
# docker build -t late-meet-build .
# docker run --rm -v $(pwd)/dist:/app/dist late-meet-build
#
# This container is for CI/CD and reproducible builds only.
# Late-Meet is a Chrome Extension — it does not run as a server.
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Output stage — minimal image containing only the built extension
FROM node:20-alpine AS output
WORKDIR /app
COPY --from=builder /app/dist ./dist
# Run as non-root user for security best practices
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser
# Default command outputs build info for CI verification
CMD ["ls", "-la", "/app/dist"]