add client-side generation for playlist.json for static builds
This commit is contained in:
parent
1ac514293b
commit
2827913d42
4 changed files with 67 additions and 18 deletions
|
|
@ -1,16 +1,15 @@
|
|||
FROM node:24-alpine AS node-builder
|
||||
WORKDIR /app
|
||||
|
||||
# RUN npm install gulp
|
||||
|
||||
COPY package.json .
|
||||
COPY package-lock.json .
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
RUN rm dist/playlist.json
|
||||
|
||||
FROM nginx:alpine
|
||||
# COPY --from=node-builder /app/server /usr/share/nginx/html
|
||||
COPY --from=node-builder /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue