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
|
|
|
|
|
|
2023-05-31 15:53:50 -07:00
|
|
|
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
|
2025-06-13 08:37:01 -06:00
|
|
|
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
|
2025-06-13 08:37:01 -06:00
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|