noticeboard/frontend/Dockerfile
jtricerolph 58b3d82b85 Fix API paths and make hotel name configurable
- /api/notices → /notices/api/notices to match nginx location block
  (was returning portal index.html causing JSON parse error)
- Add VITE_HOTEL_NAME build arg, remove hardcoded hotel name
- Add vite-env.d.ts for TypeScript import.meta.env support

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-01 17:55:36 +00:00

13 lines
318 B
Docker

FROM node:22-alpine AS build
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
ARG VITE_HOTEL_NAME="Number Four at Stow"
ENV VITE_HOTEL_NAME=$VITE_HOTEL_NAME
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html/notices
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80