commit 8acd255dd459488ac1d9346780e05dc099ba74b1
Author: Nik Afiq <nik.afiq98@ymail.com>
Date: Fri Dec 5 21:58:10 2025 +0900
Fix optional parameters handling in time parsing functions and enhance API response logging
commit 7e9a82a137057c85a909d027c51d71654ec61ac1
Author: Nik Afiq <nik.afiq98@ymail.com>
Date: Fri Dec 5 21:53:44 2025 +0900
Handle API schedule loading errors and log them for debugging
commit ec993908043c841b18fcb66916c5f9ce66b9e2f1
Author: Nik Afiq <nik.afiq98@ymail.com>
Date: Fri Dec 5 21:48:16 2025 +0900
Implement logging utility and integrate API request/response error handling
27 lines
712 B
Docker
27 lines
712 B
Docker
# ---- build ----
|
|
FROM node:20-alpine AS build
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci --no-audit --no-fund
|
|
COPY . .
|
|
|
|
# NEW: base path for Vite (e.g. /watch-party/)
|
|
ARG PUBLIC_BASE_PATH=/
|
|
ENV PUBLIC_BASE_PATH=${PUBLIC_BASE_PATH}
|
|
ARG FRONTEND_MODE=production
|
|
ENV FRONTEND_MODE=${FRONTEND_MODE}
|
|
ENV VITE_APP_MODE=${FRONTEND_MODE}
|
|
|
|
RUN npm run build
|
|
|
|
# ---- runtime (nginx) ----
|
|
FROM nginx:1.27-alpine
|
|
RUN apk add --no-cache gettext
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
COPY ops/nginx.conf.template /etc/nginx/conf.d/default.conf.template
|
|
COPY ops/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
ENV BACKEND_ORIGIN=http://localhost:8082
|
|
EXPOSE 80
|
|
ENTRYPOINT ["/bin/sh","/entrypoint.sh"]
|