ws4kp-linhanced/Dockerfile

19 lines
457 B
Text
Raw Normal View History

2025-06-12 21:35:18 -06:00
FROM node:24-alpine AS node-builder
2023-04-13 15:38:30 -06:00
WORKDIR /app
COPY package.json .
COPY package-lock.json .
2023-04-13 11:43:52 -06:00
COPY . .
2025-06-12 21:35:18 -06:00
RUN npm install
RUN npm run build
RUN rm dist/playlist.json
2025-06-12 21:35:18 -06:00
FROM nginx:alpine
2025-06-13 14:33:06 -06:00
COPY static-env-handler.sh /docker-entrypoint.d/01-static-env-handler.sh
RUN chmod +x /docker-entrypoint.d/01-static-env-handler.sh
2025-06-12 21:35:18 -06:00
COPY --from=node-builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
CMD ["nginx", "-g", "daemon off;"]