22 lines
465 B
Docker
22 lines
465 B
Docker
# Dockerfile for Broadcast Panel (package-local context)
|
|
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
# copy package files
|
|
COPY package*.json ./
|
|
|
|
# install deps
|
|
RUN npm ci --no-audit --no-fund || npm install --no-audit --no-fund
|
|
|
|
# copy source and build
|
|
COPY . ./
|
|
RUN npm run build
|
|
|
|
# production image
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|