env workaround for static build

This commit is contained in:
Mitchell Scott 2025-06-13 14:33:06 -06:00
commit 6ff7122844
No known key found for this signature in database
4 changed files with 49 additions and 2 deletions

View file

@ -10,6 +10,10 @@ 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;"]