mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-14 15:49:31 -07:00
20 lines
457 B
Docker
20 lines
457 B
Docker
FROM node:24-alpine AS node-builder
|
|
WORKDIR /app
|
|
|
|
COPY package.json .
|
|
COPY package-lock.json .
|
|
COPY . .
|
|
|
|
RUN npm install
|
|
RUN npm run build
|
|
RUN rm dist/playlist.json
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY static-env-handler.sh /docker-entrypoint.d/01-static-env-handler.sh
|
|
RUN chmod +x /docker-entrypoint.d/01-static-env-handler.sh
|
|
|
|
COPY --from=node-builder /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
CMD ["nginx", "-g", "daemon off;"]
|